Image pull from a private registry fails with 502 bad gateway error

Solution Verified - Updated -


  • While pulling the images from a private registry the image pull process fails with an error: 502 bad gateway:
"Failed to pull image "<registry-name>:port/projectname/image:tage": rpc error: code = Unknown desc = pinging container registry <registry-name>:port: invalid status code from registry 502 (Bad Gateway)"


  • Red Hat OpenShift Container Platform
    • 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