Skip to content

Instantly share code, notes, and snippets.

@mlabouardy
Created June 16, 2019 09:34
Show Gist options
  • Save mlabouardy/a93073c9fb1cad4c8304ffd13e24bbd4 to your computer and use it in GitHub Desktop.
Save mlabouardy/a93073c9fb1cad4c8304ffd13e24bbd4 to your computer and use it in GitHub Desktop.
Create Docker config secret for a private docker registry
docker login REGISTRY_URL -u USER -p PASSWORD
kubectl create secret generic nexus \
--from-file=.dockerconfigjson=/home/$USER/.docker/config.json \
--type=kubernetes.io/dockerconfigjson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment