You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Allowing pods to reference images from other secured registries
8
8
9
-
The `.dockercfg``$HOME/.docker/config.json` file for Docker clients is a Docker credentials file that stores your authentication information if you have previously logged into a secured or insecure registry.
9
+
To pull a secured container from other private or secured registries, you must create a pull secret from your container client credentials, such as Docker or Podman, and add it to your service account.
10
10
11
-
To pull a secured container image that is not from {product-registry}, you must create a pull secret from your Docker credentials and add it to your service account.
11
+
Both Docker and Podman use a configuration file to store authentication details to log in to secured or insecure registry:
12
12
13
-
The Docker credentials file and the associated pull secret can contain multiple references to the same registry, each with its own set of credentials.
13
+
* *Docker*: By default, Docker uses `$HOME/.docker/config.json`.
14
+
* *Podman*: By default, Podman uses `$HOME/.config/containers/auth.json`.
15
+
16
+
These files store your authentication information if you have previously logged in to a secured or insecure registry.
17
+
18
+
[NOTE]
19
+
====
20
+
Both Docker and Podman credential files and the associated pull secret can contain multiple references to the same registry if they have unique paths, for example, `quay.io` and `quay.io/<example_repository>`. However, neither Docker nor Podman support multiple entries for the exact same registry path.
21
+
====
14
22
15
23
.Example `config.json` file
16
24
[source,json]
@@ -51,22 +59,24 @@ type: Opaque
51
59
52
60
.Procedure
53
61
54
-
* If you already have a `.dockercfg` file for the secured registry, you can create a secret from that file by running:
62
+
* Create a secret from an existing authentication file:
63
+
64
+
** For Docker clients using `.docker/config.json`, enter the following command:
0 commit comments