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