Build error due to change in default configuration for secure docker registry.

Solution Verified - Updated -

Issue

  • The default documented configuration for securing docker registry in v3.6 is missing docker-registry.default.svc in hostname.
  • Upgrading from v3.5 to v3.6 would retain the old default docker registry configuration and would not update the default hostname to docker-registry.default.svc.
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, 172.30.124.220, not docker-registry.default.svc

Environment

  • Redhat OpenShift Container Platform (OCP)
    • 3.6

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