Image pull fails with unauthorized to access repository in OpenShift 4

Solution Verified - Updated -

Issue

  • After configuring the image pull secret as described in Updating the global cluster pull secret, access to the repository becomes unauthorized. Error message:

    Error: ImagePullBackOff "<image name>". Access repository: <repository name>, action: pull: unauthorized to access repository: <repository name>
    
  • How to test a pull secret for a Red Hat image registry?

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Pull Secret

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