containrrr / watchtower

A process for automating Docker container base image updates.
https://containrrr.dev/watchtower/
Apache License 2.0
19.23k stars 854 forks source link

Free disk space threshold #1868

Open tenekev opened 10 months ago

tenekev commented 10 months ago

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

I use Watchtower in watch + download mode. I perform the updates manually to ensure everything works after them.

If left unattended for prolonged periods of time, Watchtower downloads new images and eventually fills up all of the available space.

Describe the solution you'd like

Implement an option a free space threshold. Once reached, e.g. 90% full, Watchtower preforms a cleanup. Or just stops downloading new updates. Or prunes the oldest ones.

Describe alternatives you've considered

Notifications still require manual fixing. I could write a script that prunes on low disk space but it wouldn't be a clean approach like Watchtower.

Additional context

No response

github-actions[bot] commented 10 months ago

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! 🙏