python-harborclient icon indicating copy to clipboard operation
python-harborclient copied to clipboard

Does this tool have the ability to list digest without tags and delete them

Open DavidRodHub opened this issue 6 years ago • 2 comments

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.

DavidRodHub avatar Jun 23 '18 04:06 DavidRodHub

This tool just calls Harbor API, so if the server side support this function, our script will be really easy to add this feature.

int32bit avatar Jun 25 '18 15:06 int32bit

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

DavidRodHub avatar Jun 25 '18 21:06 DavidRodHub