@@ -57,28 +57,28 @@ store and start the container.
5757#### Images that require authentication
5858
5959If the remote Docker registry requires authentication, then you will need to provide
60- the authentication details in a Kubernetes ` Docker -registry` secret and tell Kubernetes
60+ the authentication details in a Kubernetes ` docker -registry` secret and tell Kubernetes
6161to use that secret when pulling the image.
6262
6363To create a secret, you can use the following command:
6464
6565```
66- kubectl create secret Docker -registry secret1 \
67- --Docker -server=some.registry.com \
68- --Docker -username=bob \
69- --Docker -password=bigSecret \
70- --Docker -email=bob@some.com \
66+ kubectl create secret docker -registry secret1 \
67+ --docker -server=some.registry.com \
68+ --docker -username=bob \
69+ --docker -password=bigSecret \
70+ --docker -email=bob@some.com \
7171 --namespace=default
7272```
7373
74- In this command, you would replace ` secret1 ` with the name of the secret; the ` Docker -server`
75- is set to the registry name, without the ` https:// ` prefix; the ` Docker -username` , ` Docker -password`
76- and ` Docker -email` are set to match the credentials you use to authenticate to the remote
74+ In this command, you would replace ` secret1 ` with the name of the secret; the ` docker -server`
75+ is set to the registry name, without the ` https:// ` prefix; the ` docker -username` , ` docker -password`
76+ and ` docker -email` are set to match the credentials you use to authenticate to the remote
7777Docker registry; and the ` namespace ` must be set to the same namespace where you intend to
7878use the image.
7979
8080{{% notice note %}}
81- Some registries may need a suffix making the ` Docker -server` something like ` some.registry.com/v2 `
81+ Some registries may need a suffix making the ` docker -server` something like ` some.registry.com/v2 `
8282for example. You will need to check with your registry provider's documentation to see if this is needed.
8383{{% /notice %}}
8484
@@ -136,14 +136,14 @@ cluster instead.
136136On the machine where you created the image, export it into a tar file using this command:
137137
138138```
139- Docker save domain1:1.0 > domain1.tar
139+ docker save domain1:1.0 > domain1.tar
140140```
141141
142142Then copy that tar file to each worker node in your Kubernetes cluster and run this command
143143on each node:
144144
145145```
146- Docker load < domain1.tar
146+ docker load < domain1.tar
147147```
148148
149149#### Restart pods to clear the error
0 commit comments