I need to delete all docker tags older than a date X in order to cleanup the registry; so I've changed the list action from https://github.com/byrnedo/docker-reg-tool so that it includes the date following https://stackoverflow.com/questions/32605556/how-to-find-the-creation-date-of-an-image-in-a-private-docker-registry-api-v2
Then, I've made a second step clean process so that I can manually check it:
./docker_reg_tool <REGISTRY> list <REPO> > versions.txt
./docker_clean
Remember to also run in the docker registry:
registry garbage-collect -m=true /etc/docker/registry/config.yml