Skip to content

Instantly share code, notes, and snippets.

@iamcryptoki
Created March 9, 2021 14:33
Show Gist options
  • Select an option

  • Save iamcryptoki/dcfe8a242153686825140682df308680 to your computer and use it in GitHub Desktop.

Select an option

Save iamcryptoki/dcfe8a242153686825140682df308680 to your computer and use it in GitHub Desktop.
Access private Docker Hub repository from Kubernetes.
$ kubectl create secret docker-registry <SECRET_NAME> \
--docker-server=https://docker.io \
--docker-username=<DOCKER_USERNAME> \
--docker-password=<DOCKER_TOKEN> \
--docker-email=<DOCKER_EMAIL>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment