Skip to content

Instantly share code, notes, and snippets.

@agonzalezro
Created October 15, 2015 14:35
Show Gist options
  • Save agonzalezro/e2335feac23cdb377810 to your computer and use it in GitHub Desktop.
Save agonzalezro/e2335feac23cdb377810 to your computer and use it in GitHub Desktop.
Base64 `dockercfg` for pulling images from private repos into Kubernetes
cat $HOME/.docker/config.json|jq '.auths'|sed "s/http:/https:/g"|tr '\n' ' '|tr -d '[[:space:]]'|base64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment