The oc adm prune command fails with no route to host error.

Solution Verified - Updated -

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.

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