summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2026-06-04 17:32:09 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-06-12 02:58:55 +0000
commita6bc5a8e75cd70856f9e67714c1ed45ee864f734 (patch)
treedfdfe11c517e721eee5ab6b1585c983361c0680c
parentc4f354d38b84f3f2db4875470442db702c47edba (diff)
downloadmeta-virtualization-a6bc5a8e75cd70856f9e67714c1ed45ee864f734.tar.gz
container-host-config: update registries.conf to v2 format
Podman 6.0 rejects the v1 registries.conf format entirely, failing with "registries.conf must be in v2 format but is in v1" at runtime. The old format used [registries.search] with registries = [...] syntax which was deprecated for years. Docker is unaffected — it does not read registries.conf. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-containers/container-host-config/container-host-config/registries.conf31
1 files changed, 8 insertions, 23 deletions
diff --git a/recipes-containers/container-host-config/container-host-config/registries.conf b/recipes-containers/container-host-config/container-host-config/registries.conf
index 926d8c36..cf6e0d49 100644
--- a/recipes-containers/container-host-config/container-host-config/registries.conf
+++ b/recipes-containers/container-host-config/container-host-config/registries.conf
@@ -1,25 +1,10 @@
1# This is a system-wide configuration file used to 1# System-wide container registry configuration (v2 format)
2# keep track of registries for various container backends. 2# See containers-registries.conf(5) for documentation.
3# It adheres to TOML format and does not support recursive
4# lists of registries.
5 3
6# The default location for this configuration file is /etc/containers/registries.conf. 4# Search registries for short names (e.g., "alpine" -> "docker.io/library/alpine")
5unqualified-search-registries = ["docker.io", "quay.io"]
7 6
8# The only valid categories are: 'registries.search', 'registries.insecure', 7# Per-registry configuration
9# and 'registries.block'. 8# [[registry]]
10 9# location = "registry.example.com"
11[registries.search] 10# insecure = true
12registries = ['docker.io', 'registry.fedoraproject.org', 'quay.io', 'registry.access.redhat.com']
13
14# If you need to access insecure registries, add the registry's fully-qualified name.
15# An insecure registry is one that does not have a valid SSL certificate or only does HTTP.
16[registries.insecure]
17registries = []
18
19
20# If you need to block pull access from a registry, uncomment the section below
21# and add the registries fully-qualified name.
22#
23# Docker only
24[registries.block]
25registries = []