1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 06:46:26 +01:00

Enable schema1 support in configured registries

Many historically-published images in Quay.io use the schema1 format,
and both (oc image mirror) and (podman push) fail when pushing schema1
images to registries that reject schema1 (and even if they didn't fail,
the push would modify the manifest digest, which is inconsistent with
our disconnected operation design and the general desire to use
manifest digests for iamge references).

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač
2020-05-15 01:42:33 +02:00
committed by openshift-cherrypick-robot
parent 44ddc76053
commit 163531bb44
2 changed files with 2 additions and 0 deletions

View File

@@ -101,6 +101,7 @@ OpenSSL documentation.
-v /opt/registry/certs:/certs:z \
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt \
-e REGISTRY_HTTP_TLS_KEY=/certs/domain.key \
-e REGISTRY_COMPATIBILITY_SCHEMA1_ENABLED=true \
-d docker.io/library/registry:2
----
<1> For `<local_registry_host_port>`, specify the port that your mirror registry

View File

@@ -112,6 +112,7 @@ Replace `<user>` with the user name and `<passwd>` with the password.
-e "REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd" \
-e "REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt" \
-e "REGISTRY_HTTP_TLS_KEY=/certs/domain.key" \
-e "REGISTRY_COMPATIBILITY_SCHEMA1_ENABLED=true" \
-v /opt/registry/data:/var/lib/registry:z \
-v /opt/registry/auth:/auth:z \
-v /opt/registry/certs:/certs:z \