Report this

What is the reason for this report?

How To Clean Up Container Registry

Posted on November 18, 2021

I’m looking for a way to automatically clean up old files from my Docker Container Registry.

Currently I’m using the following:

doctl registry repository list-tags myrepo

Then I can delete old tags like this:

doctl registry repository delete-tag myrepo mytag

However, these still take up space. I can use the Digest but how can I find the digests of each image programmatically?

I’ve looked at

doctl registry repository list 

But this only gives me the latest tag.

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.