"oc adm release mirror" not sending credentials
Issue
-
When trying to mirror a release to a local registry which does not allow unauthorized users to push images, the following error message is returned:
unauthorized: User is unauthorized to upload to example-registry/example/openshift-release-dev/ocp-v4.0-art-dev/_uploads
-
Even when using the
-a
option, the command fails with the above error message:oc adm release mirror -a pull-secret.json --from=quay.io/openshift-release-dev/ocp-release:4.8.43-x86_64 --to=dockerregistry.example.com/example/openshift-release-dev/ocp-v4.0-art-dev --to-release-image=dockerregistry.example.com/example/openshift-release-dev/ocp-v4.0-art-dev:4.8.43-x86_64
Environment
- Red Hat OpenShift Container Platform (RHOCP) 4.8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.