OCI – How To Remove Container Images From Private Container Registry and Delete the Empty Repository
Linux OS – Version Oracle Linux 7.0 to Oracle Linux 9.0 [Release OL7 to OL9]
Linux x86_64 on Oracle Public Cloud
This document provides steps on how to delete the container images from a private container registry and then safely remove the empty repository.
In this example, "pvtregistry" is a private registry that contains the images to be deleted and the path to root of the registry is
/var/lib/registry/ in the container.
# podman ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 58eab93dc630 container-registry.oracle.com/os/registry:v220.127.116.11 serve /etc/docker... 56 minutes ago Up 56 minutes 0.0.0.0:5000->5000/tcp pvtregistry