The oc adm prune command fails with no route to host error.
Issue
- The oc adm prune command fails with following error:
$ oc adm prune images --confirm
error: failed to ping registry image-registry.openshift-image-registry.svc:5000: Get https://image-registry.openshift-image-registry.svc:5000/: dial tcp: lookup image-registry.openshift-image-registry.svc on 192.x.x.x: no such host
* Please provide a reachable route to the integrated registry using --registry-url.
Environment
- Red Hat OpenShift Container Platform 4.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.