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

Feature request: Allow setting a custom timeout for container stopping #7

Open
enchained opened this issue Aug 17, 2024 · 0 comments
Open

Comments

@enchained
Copy link

Some containers, for example qbittorrent or databases, may need extra time to shutdown depending on usage. By default it's only 10 seconds before the kill, but in my case it may take up to 40 seconds to exit properly.

Premature kill of qbittorrent usually results in a very long resuming startup and extra HDD usage. There were hours of slow resuming in the logs until I tried stopping with docker compose down -t 120 instead, and now it is up and running in under 2 minutes.

willfarrell/autoheal implements this feature via AUTOHEAL_DEFAULT_STOP_TIMEOUT env var and individual container labels.

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

No branches or pull requests

1 participant