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

Images retention options #2000

Open
Tassleh0ff opened this issue Jul 14, 2024 · 1 comment
Open

Images retention options #2000

Tassleh0ff opened this issue Jul 14, 2024 · 1 comment

Comments

@Tassleh0ff
Copy link

Is your feature request related to a problem? Please describe.

Recently one of the images I use in mu containers had an update which blocked the service because of a bug, but I can't start the container with the previous image because it was deleted by the WATCHTOWER_CLEANUP=true option.

Describe the solution you'd like

I would be useful if there's an option to set the number of images to retain on the system instead of delete all the images not used by some container, something like WATCHTOWER_CLEANUP_RETENTION with a number parameter.
For example:
WATCHTOWER_CLEANUP_RETENTION=N to retain the latest N images

Describe alternatives you've considered

As an alternative I have to disable the unused images deletion and make an external script to sort them out by date and manage the retention with it.

Additional context

No response

Copy link

Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant