Deleting gitlab image does not delete old sha256 versions
the problem that gitlab-registry-cleanup is solving, happens with gitlab ui (too) when trying to rename projects and prior move deleting all images. gitlab allows then move project, but the detection whether there are images, is not accurate.
- i create project:
group/example
- i push image:
group/example:latest
as sha256:eb5ec3f44301bbb5042dd1a1b5955002f9e36b099244b2fdcc156325ea157039 - i push image:
group/example:latest
as sha256:b6244a1200981aa238f8e49be9f2a2339c84b834b7eddec4383a3cff1abe1b16 - in gitlab ui i delete
group/example:latest
, this would delete onlysha256:b6244a1200981aa238f8e49be9f2a2339c84b834b7eddec4383a3cff1abe1b16
version
thus sha256:eb5ec3f44301bbb5042dd1a1b5955002f9e36b099244b2fdcc156325ea157039
will stay around and waste space.