Unable to pull images from registry.redhat.io when using short image names in RHOCP 3

Solution Verified - Updated -

Issue

  • The deployment fails with below error message when short image names used.

    Failed to pull image "<image-name>": rpc error: code = Unknown desc = repository docker.io/<image-name> not found: does not exist or no pull access
    
  • Why does docker always try to pull the images from docker.io and not from registry.redhat.io when short image names are used in the deployment?
  • Why short image names works when the images pulled manually?
  • Why authentication fails with below error when the short image names used in the deployment and tried to pull image from registry.redhat.io?

    rpc error: code = Unknown desc = Get https://registry.redhat.io/v2/<image-name>/manifests/latest: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials.
    

Environment

  • Red Hat Openshift Container Platform(RHOCP)
    • 3.11

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