containers-certs.d(5)
π NAME β containers-certs.d(5) π
okay bestie, containers-certs.d is literally the directory for storing custom container-registry TLS configurations. It's giving "put your certs here so your registry pull can slay securely" energy. π
β¨ DESCRIPTION β¨
A custom TLS configuration for a container registry can be configured by creating a directory named after the registry host β for example, my-registry.com:5000 β in one of the following locations. Directories are consulted in this order, highest priority first:
- For both rootful and rootless:
$XDG_CONFIG_HOME/containers/certs.d/(or$HOME/.config/containers/certs.d/ifXDG_CONFIG_HOMEis unset)
- For rootful (
UID == 0):/etc/containers/certs.rootful.d/
- For rootless (
UID > 0):/etc/containers/certs.rootless.d/<UID>//etc/containers/certs.rootless.d/
- For both rootful and rootless:
/etc/containers/certs.d/
- For rootful (
UID == 0):/usr/share/containers/certs.rootful.d/
- For rootless (
UID > 0):/usr/share/containers/certs.rootless.d/<UID>//usr/share/containers/certs.rootless.d/
- For both rootful and rootless:
/usr/share/containers/certs.d/
- Compatibility fallback:
/etc/docker/certs.d/
π¨ Port matching is not a vibe-you-can-ignore situation. The port part's presence or absence must precisely match the port usage in image references. For example, to affectpodman pull registry.example/foo, use a directory namedregistry.example, notregistry.example:443. A directory namedregistry.example:443would affectpodman pull registry.example:443/foo.
π Directory Structure π
A certs directory can contain one or more files with the following extensions:
*.crtβ files with this extensions will be interpreted as CA certificates*.certβ files with this extensions will be interpreted as client certificates*.keyβ files with this extensions will be interpreted as client keys
Note that the client certificate-key pair will be selected by the file name (e.g., client.{cert,key}). An exemplary setup for a registry running at my-registry.com:5000 may look as follows:
/etc/containers/certs.d/ <- Certificate directory
βββ my-registry.com:5000 <- Hostname[:port]
βββ client.cert <- Client certificate
βββ client.key <- Client key
βββ ca.crt <- Certificate authority that signed the registry certificate
π¦ HISTORY π¦
Feb 2019 β Originally compiled by Valentin Rothberg rothberg@redhat.com (mailto: mailto:rothberg@redhat.com). Iconic archival behavior, no cap. π«Ά
π tiny footer sign-off: source/version says for, the center/date slot says Directory (no separate date text is printed, bestie), and the manual name is containers-certs.d(5). Catch u later! π«Άπ
π¦ where this page comes from
- centos-stream 10: containers-common 6:6.0-3.el10 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms