Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ipedrazas/ecf41f4202d4d73ac651 to your computer and use it in GitHub Desktop.
Save ipedrazas/ecf41f4202d4d73ac651 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