Failed to pull image from docker-registry.default.svc with connection refused

Solution Verified - Updated -


  • I have pushed new images from tar file to my local registry in Openshift
  • I want to use them but the deploy failed with the error:
Failed to pull image "docker-registry.default.svc:5000/xxx/xxx@xxx": rpc error: code = 2 desc = Get https://docker-registry.default.svc:5000/v2/: dial tcp getsockopt: connection refused"
  • Using shortname docker-registry.default.svc fails but ip address or full docker-registry.default.svc.cluster.local works


  • Red Hat Openshift Container Platform
    • 3.7
  • Red Hat Enterprise Linux Server release 7.4
  • docker-1.12.6-68

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In