burnettk / delete-docker-registry-image

If you are running a private v2 docker registry, and you are storing your data on disk, running this script from the machine where the data lives will let you fully delete an image or tag

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use docker api instead of crawling the filesystem

theonlydoo opened this issue · comments

Maybe it'd be a bit lighter with a huge registry, and the registry's API is quite well documented :

https://docs.docker.com/registry/spec/api/

Not possible for many use cases. For example, it is not possible via that API to ask what all the manifests are. You can ask about all of the tags, but any content with a manifest but no tag is invisible, yet eats up disk space.

it doesn't sound like this is possible given the current registry API. feel free to re-open if you think the open ticket would be valuable for others, but i'm inclined to close since i'm unlikely to work on this.