Clear out old registry images in PODMAN
search cancel

Clear out old registry images in PODMAN

book

Article ID: 409064

calendar_today

Updated On:

Products

DX Operational Observability

Issue/Introduction

We have upgraded dx o2 several times and I can’t see the benefit in keeping 23.x,24.x images in our local registry.
 
How to safely clear out old registry images?

Environment

DX O2 On-premise

Resolution

  1. PODMAN on the bastion host has its own storage where it keeps images being processed. Each time we run pull image (podman pull <image_name>) or load images from tar (podman load -i <tar_file>), images are copied from source to podman local storage on bastion host. We don't need images in podman, it is intermediate step when sending them to the registry. We don't need images in podman after they are processed (pushed to the registry). 

    RECOMMENDATION:
    Images from the podman can be removed by running "podman system prune -a" (we don't need them in podman after they are pushed to the registry).
  2. There is also a registry running in this environment. AIOpsManagement and hotfixes push images to the registry and then cluster nodes can pull images from this registry. all images are also pushed to the registry. Steps to delete images from this registry will depend on the registry type. So we can't say for sure what steps are required to clean up the registry.

    RECOMMENDATION:
    if the registry is used only for DXO2 images, it could be easier to remove all images from the registry and then use "--importImages" and hotfix to push the required images only to the empty registry.

 

Additional Information