oc adm prune images fails with `x509: certificate signed by unknown authority`

Solution In Progress - Updated -

Issue

When running oc adm prune images --confirm, it fails with a message like:

error: failed to ping registry docker-registry.default.svc:5000: Get https://docker-registry.default.svc:5000/: x509: certificate signed by unknown authority

Environment

Red Hat OpenShift Container Platform v3.11

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