Skip to content
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

Add option KeepLatestNImages #108

Open
mikaello opened this issue May 4, 2023 · 2 comments
Open

Add option KeepLatestNImages #108

mikaello opened this issue May 4, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mikaello
Copy link

mikaello commented May 4, 2023

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).

@allburov allburov added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels May 4, 2023
@Rommmmm
Copy link
Contributor

Rommmmm commented Jan 21, 2024

any news on that?

@allburov
Copy link
Member

No, we are looking for help here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Development

No branches or pull requests

3 participants