Failed to mirror OpenShift image repository when private registry is insecure

Solution Verified - Updated -


  • Unable to install or upgrade OpenShift Container Platform due to failure in mirroring the OpenShift image registry.

  • oc client fails to mirror the OpenShift image repository to use during cluster installation or upgrade in disconnected environment with error:

error: unable to connect to X.X.X.X:5000/ocp4/openshift4: Get https://X.X.X.X:5000/v2/: http: server gave HTTP response to HTTPS client
  • How to mirror images to an insecure registry?


  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.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