python-harborclient
python-harborclient copied to clipboard
Does this tool have the ability to list digest without tags and delete them
This script has the ability to delete repo tags but would be nice if it could delete repo digest without tags so that garbage-collector can clean up the associated blobs to regain disk space.
This tool just calls Harbor API, so if the server side support this function, our script will be really easy to add this feature.
Currently our private registry is harbor 1.3.0. And need a way to quickly and easily clean-up untagged digest so that Garbage collector can clean-up the blobs they reference. The following link describes the issue with registry cleanup.
Garbage collect untagged manifests https://github.com/docker/distribution/issues/1844
Found the following script that will find all untagged digest but doesn't authenticate with harbor docker private registry. It would be awesome if harbor-client CLI would provide this function since it already provides delete image tags.
Docker Registry(v2) Manifest Cleanup https://github.com/mortensteenrasmussen/docker-registry-manifest-cleanup