We would like to have the possibility of cleanup process that automatically deletes all old image versions that are no longer used.
The business case is as follows:
In an environment that has been upgraded through many versions the docker registry consumes a lot of excess disk space because of old image versions. The normal cleanup scripts only delete images that are no longer used at all with the same name. For all images still in use all old versions (tags) are still stored in the registry consuming disk space.
Using the script cleanRegistry to delete named images is not really helpful as it will also delete the newest version that is still in use. And even if it did work, using it would require a lot of manual work identifying all images and their tags that can be deleted.