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
image/docker: use unified configfile search for cert directories
Switch `dockerCertDir` to use the `configfile.GetSearchPaths` for
resolving certificate directories. New `ExtraDropInDirectories` is
introduced to add extra drop-in directory after XDG and before admin
override.
Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
// newDockerClientFromRef returns a new dockerClient instance for refHostname (a host a specified in the Docker image reference, not canonicalized to dockerRegistry)
Copy file name to clipboardExpand all lines: image/docs/containers-certs.d.5.md
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,26 @@
4
4
containers-certs.d - Directory for storing custom container-registry TLS configurations
5
5
6
6
# DESCRIPTION
7
-
A custom TLS configuration for a container registry can be configured by creating a directory under `$HOME/.config/containers/certs.d` or `/etc/containers/certs.d`.
8
-
The name of the directory must correspond to the `host`[`:port`] of the registry (e.g., `my-registry.com:5000`).
7
+
A custom TLS configuration for a container registry can be configured by creating a directory named after the registry `host`[`:port`] (for example, `my-registry.com:5000`) in one of the following locations.
8
+
Directories are consulted in this order (highest priority first):
9
+
10
+
- For both rootful and rootless:
11
+
-`$XDG_CONFIG_HOME/containers/certs.d/` (or `$HOME/.config/containers/certs.d/` if `XDG_CONFIG_HOME` is unset)
12
+
-`/etc/containers/certs.d/`
13
+
- For rootful (UID == 0):
14
+
-`/etc/containers/certs.rootful.d/`
15
+
- For rootless (UID > 0):
16
+
-`/etc/containers/certs.rootless.d/`
17
+
-`/etc/containers/certs.rootless.d/<UID>/`
18
+
- For both rootful and rootless:
19
+
-`/usr/share/containers/certs.d/`
20
+
- For rootful (UID == 0):
21
+
-`/usr/share/containers/certs.rootful.d/`
22
+
- For rootless (UID > 0):
23
+
-`/usr/share/containers/certs.rootless.d/`
24
+
-`/usr/share/containers/certs.rootless.d/<UID>/`
25
+
- Compatibility fallback:
26
+
-`/etc/docker/certs.d/`
9
27
10
28
The port part presence / absence must precisely match the port usage in image references,
11
29
e.g. to affect `podman pull registry.example/foo`,
0 commit comments