Unable to pull images from internal image registry using alternate service name in RHOCP 4

Solution Verified - Updated -

Issue

  • Unable to pull image using an alternative service name:
Error:
17m         Warning   Failed           pod/maven-zqqnh             Failed to pull image "docker-registry.default.svc:5000/openshift3/jenkins-agent-maven-35-rhel7:v3.11": rpc error: 
code = Unknown desc = pinging container registry docker-registry.default.svc:5000: Get "https://docker-registry.default.svc:5000/v2/": dial tcp: lookup docker- registry.default.svc on 10.1.2.3:53: no such host

Environment

  • Red Hat OpenShift Container Platform 4

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