gitlab-registry-images-cleaner icon indicating copy to clipboard operation
gitlab-registry-images-cleaner copied to clipboard

adds ability to purge when images in container are broken

Open orangewolf opened this issue 6 years ago • 4 comments

we had a bunch of registries with 0 length or otherwise undeleteable tags in them. We hacked around this by pushing a small image to those tags and then re-running the delete.

orangewolf avatar Oct 23 '18 17:10 orangewolf

@orangewolf do you have ideas why it happens? it has happened for me too in the past, when i excessively ran delete from gitlab ui. but i haven't noticed these 0 byte errors for several months. yet i have now cleanup automation in place and run registry-garbage-collect. or perhaps gitlab fixed something?

glensc avatar Oct 24 '18 21:10 glensc

I agree with @glensc - you need to check the return value of the delete_image function and make the logic in __main__

n0madic avatar Oct 26 '18 06:10 n0madic

thank you for the great feedback. I won't have cycles to digest and respond until Friday, but I will pick it back up then.

orangewolf avatar Oct 30 '18 05:10 orangewolf

@orangewolf which Friday? :)

lexfrei avatar Sep 30 '20 12:09 lexfrei