Issue #14703 - Update Images.md (#14757)

pull/14765/head
Supriya Sirbi 2019-06-06 10:46:11 +05:30 committed by Kubernetes Prow Robot
parent fd6ec9bdb5
commit 1aae32870d
1 changed files with 1 additions and 13 deletions

View File

@ -281,19 +281,7 @@ Kubernetes supports specifying registry keys on a pod.
Run the following command, substituting the appropriate uppercase values:
```shell
cat <<EOF > ./kustomization.yaml
secretGenerator:
- name: myregistrykey
type: docker-registry
literals:
- docker-server=DOCKER_REGISTRY_SERVER
- docker-username=DOCKER_USER
- docker-password=DOCKER_PASSWORD
- docker-email=DOCKER_EMAIL
EOF
kubectl apply -k .
secret/myregistrykey-66h7d4d986 created
kubectl create secret docker-registry <name> --docker-server=DOCKER_REGISTRY_SERVER --docker-username=DOCKER_USER --docker-password=DOCKER_PASSWORD --docker-email=DOCKER_EMAIL
```
If you already have a Docker credentials file then, rather than using the above