Getting connection refused while importing any image

Solution Verified - Updated -

Issue

  • Not able to import any image in OCP.
  • Getting below error everytime while importing an image:
# oc import-image h1234/jenkins-2-rhel7  --from=registry.access.redhat.com/openshift3/jenkins-2-rhel7    --confirm  
The import completed with errors.

Name:               jenkins-2-rhel7
Namespace:          sXXX
Created:            Less than a second ago
Labels:             <none>
Annotations:        openshift.io/image.dockerRepositoryCheck=2018-01-31T12:37:44Z
Docker Pull Spec:   docker-registry.default.svc:5000/sXXX/jenkins-2-rhel7
Image Lookup:       local=false
Unique Images:      0
Tags:               1

latest
  tagged from registry.access.redhat.com/openshift3/jenkins-2-rhel7

  ! error: Import failed (InternalError): Internal error occured: Get https://registry.access.redhat.com/v2/: dial tcp X.X.X.X:443 getsockopt: connection refused
      Less than a second ago

error: tag latest failed: Internal error occurred: Get https://registry.access.redhat.com/v2/: : dial tcp X.X.X.X:443 getsockopt: connection refused

Environment

  • OpenShift Container Platform
    • 3.x

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