Created
June 16, 2019 09:34
-
-
Save mlabouardy/a93073c9fb1cad4c8304ffd13e24bbd4 to your computer and use it in GitHub Desktop.
Create Docker config secret for a private docker registry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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