@@ -57,28 +57,28 @@ store and start the container.
57
57
#### Images that require authentication
58
58
59
59
If 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
61
61
to use that secret when pulling the image.
62
62
63
63
To create a secret, you can use the following command:
64
64
65
65
```
66
- kubectl create secret Docker -registry secret1 \
67
- --Docker -server=some.registry.com \
68
- --Docker -username=bob \
69
- --Docker -password=bigSecret \
70
-
66
+ kubectl create secret docker -registry secret1 \
67
+ --docker -server=some.registry.com \
68
+ --docker -username=bob \
69
+ --docker -password=bigSecret \
70
+
71
71
--namespace=default
72
72
```
73
73
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
77
77
Docker registry; and the ` namespace ` must be set to the same namespace where you intend to
78
78
use the image.
79
79
80
80
{{% 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 `
82
82
for example. You will need to check with your registry provider's documentation to see if this is needed.
83
83
{{% /notice %}}
84
84
@@ -136,14 +136,14 @@ cluster instead.
136
136
On the machine where you created the image, export it into a tar file using this command:
137
137
138
138
```
139
- Docker save domain1:1.0 > domain1.tar
139
+ docker save domain1:1.0 > domain1.tar
140
140
```
141
141
142
142
Then copy that tar file to each worker node in your Kubernetes cluster and run this command
143
143
on each node:
144
144
145
145
```
146
- Docker load < domain1.tar
146
+ docker load < domain1.tar
147
147
```
148
148
149
149
#### Restart pods to clear the error
0 commit comments