-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always removes the 5 latest instead of keeping the 5 latest #64
Comments
So it turns out the inside a month it works fine, but when a new month starts it keeps on deleting the newest ones for the new month, instead of deleting the older ones of the previous month |
@warhansen it happens because the default algorithm for sort image names is human sorting.
If you want to delete images by their date you can try to use the argument |
Ok, however there are older images that will be much older than the hours specified in some of the other repositories of which there are only 1 image, and they will also then get deleted! |
Yes, you are right. There is no possibility to use |
I hit the same issue and found an option --order-by-date |
@olfway looks like the option suggested by you is not recognized. How did you invoke it ?
|
It was added 10 days ago and docker image on docker hub is outdated |
Thanks @olfway for sharing. Voted for docker image update. |
the docker image was updated. please check if you see this option now |
Hi, awesome tool!
However, when I run the command it deletes the latest 5 images, instead of keeping the 5 latest:
Obviously I tag per date so you can see it is REMOVING the latest image! (deleting tag RLA2-05022019 done)
This is the command I am running:
python docker-registry/registry.py -l docker:docker -r https://dockerhub.myrepo.local --no-validate-ssl --delete --num 5
Thanks
The text was updated successfully, but these errors were encountered: