Add option KeepLatestNImages #108
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
When cleaning images, it is possible to use the option
KeepLatestNFiles
. But this will look at docker tags, and not docker images.Example:
If you got 3 images, both tagged with 2 tags each, so in total, you got 6 tags. If you run artifactory-cleanup with
KeepLatestNFiles count=2
you may end up in the situation that you only have a single image left (with 2 tags), because each tag is counted as a file.Proposal:
What I propose is an option,
KeepLatestNImages
, that only looks at the image digest, and for those images that are older, it will delete all tags. So in the example above you will be left with 2 images (still with 2 tags each, 4 in total).The text was updated successfully, but these errors were encountered: