6f9067
# For more information on this configuration file, see containers-registries.conf(5).
6f9067
#
6f9067
# There are multiple versions of the configuration syntax available, where the
6f9067
# second iteration is backwards compatible to the first one. Mixing up both
6f9067
# formats will result in an runtime error.
6f9067
#
6f9067
# The initial configuration format looks like this:
6f9067
#
6f9067
# Registries to search for images that are not fully-qualified.
6f9067
# i.e. foobar.com/my_image:latest vs my_image:latest
d82e54
[registries.search]
6f9067
registries = ['docker.io', 'registry.fedoraproject.org', 'quay.io', 'registry.access.redhat.com', 'registry.centos.org']
d82e54
6f9067
# Registries that do not use TLS when pulling images or uses self-signed
6f9067
# certificates.
d82e54
[registries.insecure]
d82e54
registries = []
d82e54
6f9067
# Blocked Registries, blocks the `docker daemon` from pulling from the blocked registry.  If you specify
6f9067
# "*", then the docker daemon will only be allowed to pull from registries listed above in the search
6f9067
# registries.  Blocked Registries is deprecated because other container runtimes and tools will not use it.
6f9067
# It is recommended that you use the trust policy file /etc/containers/policy.json to control which
6f9067
# registries you want to allow users to pull and push from.  policy.json gives greater flexibility, and
6f9067
# supports all container runtimes and tools including the docker daemon, cri-o, buildah ...
6f9067
# The atomic CLI `atomic trust` can be used to easily configure the policy.json file.
d82e54
[registries.block]
d82e54
registries = []
6f9067
6f9067
# The second version of the configuration format allows to specify registry
6f9067
# mirrors:
6f9067
#
6f9067
# # An array of host[:port] registries to try when pulling an unqualified image, in order.
6f9067
# unqualified-search-registries = ["example.com"]
6f9067
#
6f9067
# [[registry]]
6f9067
# # The "prefix" field is used to choose the relevant [[registry]] TOML table;
6f9067
# # (only) the TOML table with the longest match for the input image name
6f9067
# # (taking into account namespace/repo/tag/digest separators) is used.
6f9067
# #
6f9067
# # If the prefix field is missing, it defaults to be the same as the "location" field.
6f9067
# prefix = "example.com/foo"
6f9067
#
6f9067
# # If true, unencrypted HTTP as well as TLS connections with untrusted
6f9067
# # certificates are allowed.
6f9067
# insecure = false
6f9067
#
6f9067
# # If true, pulling images with matching names is forbidden.
6f9067
# blocked = false
6f9067
#
6f9067
# # The physical location of the "prefix"-rooted namespace.
6f9067
# #
6f9067
# # By default, this equal to "prefix" (in which case "prefix" can be omitted
6f9067
# # and the [[registry]] TOML table can only specify "location").
6f9067
# #
6f9067
# # Example: Given
6f9067
# #   prefix = "example.com/foo"
6f9067
# #   location = "internal-registry-for-example.net/bar"
6f9067
# # requests for the image example.com/foo/myimage:latest will actually work with the
6f9067
# # internal-registry-for-example.net/bar/myimage:latest image.
6f9067
# location = internal-registry-for-example.com/bar"
6f9067
#
6f9067
# # (Possibly-partial) mirrors for the "prefix"-rooted namespace.
6f9067
# #
6f9067
# # The mirrors are attempted in the specified order; the first one that can be
6f9067
# # contacted and contains the image will be used (and if none of the mirrors contains the image,
6f9067
# # the primary location specified by the "registry.location" field, or using the unmodified
6f9067
# # user-specified reference, is tried last).
6f9067
# #
6f9067
# # Each TOML table in the "mirror" array can contain the following fields, with the same semantics
6f9067
# # as if specified in the [[registry]] TOML table directly:
6f9067
# # - location
6f9067
# # - insecure
6f9067
# [[registry.mirror]]
6f9067
# location = "example-mirror-0.local/mirror-for-foo"
6f9067
# [[registry.mirror]]
6f9067
# location = "example-mirror-1.local/mirrors/foo"
6f9067
# insecure = true
6f9067
# # Given the above, a pull of example.com/foo/image:latest will try:
6f9067
# # 1. example-mirror-0.local/mirror-for-foo/image:latest
6f9067
# # 2. example-mirror-1.local/mirrors/foo/image:latest
6f9067
# # 3. internal-registry-for-example.net/bar/myimage:latest
6f9067
# # in order, and use the first one that exists.