Received "unauthorized: authentication required" when is tried to pull an image from the internal registry after set containerRuntimeSearchRegistries in OpenShift 4

Solution Verified - Updated -

Issue

  • After modifying the object image.config.openshift.io/cluster, adding image-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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content