Skip to content

Conversation

mtrmac
Copy link
Contributor

@mtrmac mtrmac commented Oct 3, 2025

... as highlighted in containers/podman#26567 .

... as highlighted in containers/podman#26567 .

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@github-actions github-actions bot added the image Related to "image" package label Oct 3, 2025
@mtrmac
Copy link
Contributor Author

mtrmac commented Oct 3, 2025

Fixes containers/podman#26567 .

# DESCRIPTION
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`.
The name of the directory must correspond to the `host:port` of the registry (e.g., `my-registry.com:5000`).
The name of the directory must correspond to the `host`[`:port`] of the registry (e.g., `my-registry.com:5000`).
Copy link

@3nprob 3nprob Oct 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The name of the directory must correspond to the `host`[`:port`] of the registry (e.g., `my-registry.com:5000`).
The name of the directory must correspond to the `host`[`:port`] of the registry, where `:port` must be omitted in case of port `443` but is otherwise required (e.g., `my-registry.com:5000` or `registry.example.com`).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That’s not actually correct - if users pull registry.example.com:443/…, the directory must be named registry.example.com:443. 443/80 are not special for this purpose.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, right. I still find the proposal can cause confusion (one interpretation being that the :port is optional.

How about using "prefix", "registry" or "location" instead of "host[:port]" - which would reuse notation from containers-registries.conf docs and indicating that the following explanation is required reading?

(Aside: Elsewhere it seems that hostname:port is used more than host:port)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

image Related to "image" package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants