2566c1
# For more information on this configuration file, see containers-registries.conf(5).
2566c1
#
2566c1
# NOTE: RISK OF USING UNQUALIFIED IMAGE NAMES
2566c1
# We recommend always using fully qualified image names including the registry
2566c1
# server (full dns name), namespace, image name, and tag
2566c1
# (e.g., registry.redhat.io/ubi8/ubi:latest). Pulling by digest (i.e.,
2566c1
# quay.io/repository/name@digest) further eliminates the ambiguity of tags.
2566c1
# When using short names, there is always an inherent risk that the image being
2566c1
# pulled could be spoofed. For example, a user wants to pull an image named
2566c1
# `foobar` from a registry and expects it to come from myregistry.com. If
2566c1
# myregistry.com is not first in the search list, an attacker could place a
2566c1
# different `foobar` image at a registry earlier in the search list. The user
2566c1
# would accidentally pull and run the attacker's image and code rather than the
2566c1
# intended content. We recommend only adding registries which are completely
2566c1
# trusted (i.e., registries which don't allow unknown or anonymous users to
2566c1
# create accounts with arbitrary names). This will prevent an image from being
2566c1
# spoofed, squatted or otherwise made insecure.  If it is necessary to use one
2566c1
# of these registries, it should be added at the end of the list.
2566c1
#
2566c1
# # An array of host[:port] registries to try when pulling an unqualified image, in order.
2566c1
54481b
unqualified-search-registries = ["registry.access.redhat.com", "registry.redhat.io", "docker.io"]
2566c1
2566c1
# [[registry]]
2566c1
# # The "prefix" field is used to choose the relevant [[registry]] TOML table;
2566c1
# # (only) the TOML table with the longest match for the input image name
2566c1
# # (taking into account namespace/repo/tag/digest separators) is used.
2566c1
# # 
2566c1
# # The prefix can also be of the form: *.example.com for wildcard subdomain
2566c1
# # matching.
2566c1
# #
2566c1
# # If the prefix field is missing, it defaults to be the same as the "location" field.
2566c1
# prefix = "example.com/foo"
2566c1
#
2566c1
# # If true, unencrypted HTTP as well as TLS connections with untrusted
2566c1
# # certificates are allowed.
2566c1
# insecure = false
2566c1
#
2566c1
# # If true, pulling images with matching names is forbidden.
2566c1
# blocked = false
2566c1
#
2566c1
# # The physical location of the "prefix"-rooted namespace.
2566c1
# #
2566c1
# # By default, this is equal to "prefix" (in which case "prefix" can be omitted
2566c1
# # and the [[registry]] TOML table can only specify "location").
2566c1
# #
2566c1
# # Example: Given
2566c1
# #   prefix = "example.com/foo"
2566c1
# #   location = "internal-registry-for-example.net/bar"
2566c1
# # requests for the image example.com/foo/myimage:latest will actually work with the
2566c1
# # internal-registry-for-example.net/bar/myimage:latest image.
2566c1
#
2566c1
# # The location can be empty iff prefix is in a
2566c1
# # wildcarded format: "*.example.com". In this case, the input reference will
2566c1
# # be used as-is without any rewrite.
2566c1
# location = internal-registry-for-example.com/bar"
2566c1
#
2566c1
# # (Possibly-partial) mirrors for the "prefix"-rooted namespace.
2566c1
# #
2566c1
# # The mirrors are attempted in the specified order; the first one that can be
2566c1
# # contacted and contains the image will be used (and if none of the mirrors contains the image,
2566c1
# # the primary location specified by the "registry.location" field, or using the unmodified
2566c1
# # user-specified reference, is tried last).
2566c1
# #
2566c1
# # Each TOML table in the "mirror" array can contain the following fields, with the same semantics
2566c1
# # as if specified in the [[registry]] TOML table directly:
2566c1
# # - location
2566c1
# # - insecure
2566c1
# [[registry.mirror]]
2566c1
# location = "example-mirror-0.local/mirror-for-foo"
2566c1
# [[registry.mirror]]
2566c1
# location = "example-mirror-1.local/mirrors/foo"
2566c1
# insecure = true
2566c1
# # Given the above, a pull of example.com/foo/image:latest will try:
2566c1
# # 1. example-mirror-0.local/mirror-for-foo/image:latest
2566c1
# # 2. example-mirror-1.local/mirrors/foo/image:latest
2566c1
# # 3. internal-registry-for-example.net/bar/image:latest
2566c1
# # in order, and use the first one that exists.
2566c1
short-name-mode = "permissive"