Error "error: build error: Failed to push image: Get https://docker-registry.default.svc:5000/v1/_ping" on Openshift Container Platform 3

Solution Verified - Updated -

Issue

After upgrading from OCP 3.7 to 3.9, fails to push the image with error:

Pushing image docker-registry.default.svc:5000/project/image:tag
Registry server Address: 
Registry server User Name: serviceaccount
Registry server Email: serviceaccount@example.org
Registry server Password: <<non-empty>>
error: build error: Failed to push image: Get https://docker-registry.default.svc:5000/v1/_ping:  x509: certificate is valid for docker-registry.default.svc.cluster.local, 192.168.0.0, not docker-registry.default.svc

Environment

Red Hat Openshift Container Platform

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