oc adm release command is failed: no basic auth credentials
Issue
- "oc adm release" is failed with the following messages, when you prepare your mirror registry to install OCP4.
$ oc adm release extract --command=openshift-install "${LOCAL_REGISTRY}/${LOCAL_REPOSITORY}:${OCP_RELEASE}"
error: unable to read image int-registry.example.com:5000/ocp4/openshift4:4.2.0: Head https://int-registry.example.com:5000/v2/ocp4/openshift4/manifests/4.2.0: no basic auth credentials
Environment
- OpenShift Container Platform
- 4.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.