oc adm prune images fails with error: failed to ping registry docker-registry.default.svc:5000

Solution In Progress - Updated -

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.

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