How to remove unused drops in the docker registry?

I have a docker registry that I use for development. Each image I click is tagged :latest. Thus, there are many unassigned images / drops. I am trying to clear the image by running GC, but this does not help:

docker exec -it id bin/registry garbage-collect  /etc/docker/registry/config.yml

env var REGISTRY_STORAGE_DELETE_ENABLEDis True. This is probably due to what is still in my version sha256.

I can delete the image using curl and API. Than I use the tag and delete the correct one sha256in the revision. And then I can remove the unused drops with a GC script.

But when I return to the same tag, it cannot delete unused versions and unused drops.

+4
source share

Source: https://habr.com/ru/post/1658798/


All Articles