Report this

What is the reason for this report?

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

Posted on September 16, 2020

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 ?



This textbox defaults to using Markdown to format your 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.

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

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.