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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.