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

Cleanup script takes really long time with large registries

zoobab opened this issue · comments

Hi,

I have a large registry server with 500GB of images, and I try to delete one image out of there, which takes really long time compared to a small registry.

Is there a way to speed up this script for large registries?

Best,

It'll get faster as you start deleting images. :)

Sorry I didn't respond to this earlier, especially given my answer. Yes, I believe that large repos can slow things down considerably. You should have seen it when it was implemented in bash; it was way slower. :) However, I don't really think another optimization refactor is in the cards for this repo, given the docker-inc-sponsored alternatives that now exist. As such, closing.