Ivan Pavlushin
Ivan Pavlushin
@warhansen it happens because the default algorithm for sort image names is human sorting. > alist.sort(key=natural_keys) sorts in human order > http://nedbatchelder.com/blog/200712/human_sorting.html > (See Toothy's implementation in the comments) If...
Yes, you are right. There is no possibility to use `--num` with --delete-by-hours for that.
Hi @wu105, I briefly looked at harbor docs and seems they have ["tag retention"](https://goharbor.io/docs/2.1.0/working-with-projects/working-with-images/create-tag-retention-rules/) feature. I suggest you to explore it and try it. It might be better than 3rd...
@testphreak could you post output for docker `run --rm anoxis/registry-cli -r https:// --no-validate-ssl -i customimage`?
@testphreak try to remove `--num 0` from command line.
@testphreak ok, then if you have less than 10 tags try with `--num 1` not 0.
@glance- thanks for your contribution. Could you add tests?
Hi @ledettwy you can you `--delete-by-hours` with 1 hour and use `--keep-tags`. This should work as you expected. For the test, use `--dry` option.
> I didn't run formal tests, just used the change in practice. I was hoping they might run automatically somewhere:) Can you point me as to how to run them?...
@nmapx @Sandelinos These changes might break existing use cases for users. I'd like to keep 10000 as the default value and configure it if necessary. Could you also add a...