Docker pull from private v2 registry fails with image not found

Solution Verified - Updated -

Issue

  • Docker pull is not working, even though image exists in registry

    # docker pull registry.example.com:5000/myrhel7
    Using default tag: latest
    Trying to pull repository registry.example.com:5000/myrhel7 ... not found
    Error: image myrhel7:latest not found
    
  • docker pull fails with image not found, and docker daemon debug logs show the following error:

    level=debug msg="Error trying v2 registry: Get 
    http://registry.example.com:5000/v2/myrhel7/manifests/latest: no basic 
    auth credentials"
    
  • Using oreg_url in hosts doesn't work if private registry requires authentication

Environment

  • Red Hat Enterprise Linux 7
  • docker-distribution
  • OpenShift Container Platform 3.7

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