oc adm prune images fails with error: failed to ping registry docker-registry.default.svc:5000
Issue
-
When I try to prune images on a host that is not part of Openshift cluster, it fails with
error: failed to ping registry docker-registry.default.svc:5000$ oc adm prune images --confirm error: failed to ping registry docker-registry.default.svc:5000: Get https://docker-registry.default.svc:5000/: dial tcp: lookup docker-registry.default.svc on 10.1.1.1:53: no such host * Please provide a reachable route to the integrated registry using --registry-url.
Environment
- Openshift Continer Platform (OCP) 3.9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.