Received "unauthorized: authentication required" when the internal Image Registry is configured as Image Registry Source 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".
  • When the internal Image Registry is configured as a Registry Source, image pull fails with "unauthorized: authentication required" error messages.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Internal Image Registry configured as a Registry Source

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