-
Epic
-
Resolution: Unresolved
-
Undefined
-
None
-
[Epic]: podman_registries_conf TOML tables not supported [rhel-10]
-
Low
-
Red Hat Enterprise Linux
-
50% To Do, 25% In Progress, 25% Done
-
rhel-sst-system-roles
-
False
-
-
Yes
-
Dev ack
-
Enhancement
-
Unspecified
-
Unspecified
-
Unspecified
This is a clone of issue RHEL-84930 to use for version rhel-10.1
–
Original description:
-
- Summary
The `podman_registries_conf` configuration variable is missing support for TOML tables.
TOML tables are required to configure e.g. mirroring registries.
-
- Details
Example `registries.conf` with TOML tables for registry mirroring:
```
$ cat ~/.config/containers/registries.conf
[[registry]]
location="docker.io"
[[registry.mirror]]
location="jfrog.io"
[[registry]]
location="ghcr.io"
[[registry.mirror]]
location="jfrog.io"
[[registry]]
location="quay.io"
[[registry.mirror]]
location="jfrog.io"
[[registry]]
location="registry.access.redhat.com"
[[registry.mirror]]
location="jfrog.io"
```
I've found no way to use the `podman_registries_conf` conf variable to get the same result with the ansible role.
For me it looks like the `templates/toml.j2` template which is used to render the registries.conf has no support for TOML tables.
```
$ man containers-registries.conf
...
NAMESPACED [[registry]] SETTINGS
The bulk of the configuration is represented as an array of [[registry]] TOML tables; the settings may therefore differ among different registries as well as among different
namespaces/repositories within a registry.
...
```
Blog post from RedHat:
https://www.redhat.com/en/blog/manage-container-registries
- links to