Skip to content

Commit 92d8d1e

Browse files
authored
Merge pull request #28733 from Kartik494/dockerserver
Add docker server registry
2 parents eb8fd2a + cb712cd commit 92d8d1e

File tree

1 file changed

+16
-9
lines changed
  • content/en/docs/concepts/configuration

1 file changed

+16
-9
lines changed

content/en/docs/concepts/configuration/secret.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ to create a Docker registry Secret, you can do:
212212
kubectl create secret docker-registry secret-tiger-docker \
213213
--docker-username=tiger \
214214
--docker-password=pass113 \
215-
215+
216+
--docker-server=my-registry.example:5000
216217
```
217218

218219
This command creates a Secret of type `kubernetes.io/dockerconfigjson`.
@@ -222,15 +223,21 @@ on the fly:
222223

223224
```json
224225
{
225-
"auths": {
226-
"https://index.docker.io/v1/": {
227-
"username": "tiger",
228-
"password": "pass113",
229-
"email": "[email protected]",
230-
"auth": "dGlnZXI6cGFzczExMw=="
231-
}
232-
}
226+
"apiVersion": "v1",
227+
"data": {
228+
".dockerconfigjson": "eyJhdXRocyI6eyJteS1yZWdpc3RyeTo1MDAwIjp7InVzZXJuYW1lIjoidGlnZXIiLCJwYXNzd29yZCI6InBhc3MxMTMiLCJlbWFpbCI6InRpZ2VyQGFjbWUuY29tIiwiYXV0aCI6ImRHbG5aWEk2Y0dGemN6RXhNdz09In19fQ=="
229+
},
230+
"kind": "Secret",
231+
"metadata": {
232+
"creationTimestamp": "2021-07-01T07:30:59Z",
233+
"name": "secret-tiger-docker",
234+
"namespace": "default",
235+
"resourceVersion": "566718",
236+
"uid": "e15c1d7b-9071-4100-8681-f3a7a2ce89ca"
237+
},
238+
"type": "kubernetes.io/dockerconfigjson"
233239
}
240+
234241
```
235242

236243
### Basic authentication Secret

0 commit comments

Comments
 (0)