Received "unauthorized: authentication required" when is tried to pull an image from the internal registry after set containerRuntimeSearchRegistries in OpenShift 4
Issue
- After modifying the object
image.config.openshift.io/cluster
, addingimage-registry.openshift-image-registry.svc:5000
inside{.spec.registrySources.containerRuntimeSearchRegistries[]}
, pulling an image from the internal registry results in "unauthorized: authentication required"
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.