How to delete images from private docker registry
Hello, I followed this awesome guide https://www.linode.com/docs/kubernetes/how-to-setup-a-private-docker-registry-with-lke-and-object-storage/
But now if I want to delete this images that I pushed to this private docker registry, how do I do it.
Also this images are stored in object storage.
Is there some way to do it
2 Replies
jyoo
Linode Staff
Deleting a private Docker image can't be done from the Registry API, so you'll need to use a different method. There are some workarounds that may be helpful. This StackOverflow post details how to use tags to delete a private image. You can also use a curl
command to delete the image, as referenced in this GitHub gist. If you're using a private v2 registry, this program might work for deleting the image.