Difference between revisions of "Kubectl create secret docker-registry"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
* [[kubectl create secret generic]] YOURregcred [[--from-file]]=[[.dockerconfigjson]]=/path/to/[[.docker/config.json]] [[--type]]=[[kubernetes.io/dockerconfigjson]] | * [[kubectl create secret generic]] YOURregcred [[--from-file]]=[[.dockerconfigjson]]=/path/to/[[.docker/config.json]] [[--type]]=[[kubernetes.io/dockerconfigjson]] | ||
* [[docker login]] | * [[docker login]] | ||
+ | * Lowercase [[RFC 1123]] | ||
== See also == | == See also == | ||
* {{kubectl create secret}} | * {{kubectl create secret}} | ||
* {{Registry}} | * {{Registry}} |
Revision as of 05:30, 18 July 2024
kubectl create secret docker-registry NAME --docker-username=user --docker-password=password
kubectl create secret docker-registry NAME --docker-username=user --docker-password=password --docker-email=email [--docker-server=string] [--from-file=[key=]source] [--dry-run=server|client|none]
- Pull an Image from a Private Registry in Kubernetes
- kubectl create secret generic YOURregcred --from-file=.dockerconfigjson=/path/to/.docker/config.json --type=kubernetes.io/dockerconfigjson
- docker login
- Lowercase RFC 1123
See also
Advertising: