Question

How to delete remaining docker digest in Images when tag are already removed ?

Hi,

I have create a docker private repository in Images.

I push multiple docker images and tag them with versions number.

Yesterday, I try to clean the repository by removing all the old versions of the image (old tags).

But I don’t check the “Remove digest option” in the popup. So it only removed the tag and not the associated digest.

Now, I don’t have the tags listed anymore but I still have the digests using space and I can’t delete them easily from UI. How could I fix that ?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

you can use doctl

doctl auth init
doctl registry repo list-tags <your repo>
doctl registry repo delete-manifest <your repo> sha256:<digest>
doctl registry gc start

check if job was done

doctl registry garbage-collection get-active

Remove image/tag from Docker Hub using API To delete a tag from Docker Hub you need and auth token and perform a delete HTTP call to the registry