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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.