You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI – How To Remove Container Images From Private Container Registry and Delete the Empty Repository

Applies to: 

Linux OS – Version Oracle Linux 7.0 to Oracle Linux 9.0 [Release OL7 to OL9] 

Linux x86_64 on Oracle Public Cloud 


Goal: 

This document provides steps on how to delete the container images from a private container registry and then safely remove the empty repository. 

 

Solution: 

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:v2.7.1.1 serve /etc/docker... 56 minutes ago Up 56 minutes 0.0.0.0:5000->5000/tcp pvtregistry 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!