This commit is contained in:
phil 2024-11-03 05:16:16 +01:00
parent 10fb248aea
commit aeffddcb51

View file

@ -56,9 +56,9 @@ In practice:
ssh registry@tiptop
## Run a shell in a registry container
# podman run -it --rm myregistry sh # if the registry is not started
podman exec -it mycontainer sh
podman exec -it myregistry sh
# List all images and their tags
ls -lsd /var/lib/registry/docker/registry/v2/repositories/*/_manifests/tags/*
ls -ldrt /var/lib/registry/docker/registry/v2/repositories/*/_manifests/tags/*
## To remove an image with all its tags:
rm -rf /var/lib/registry/docker/registry/v2/repositories/image_to_be_deleted
## To remove only a tag, eg "latest":