brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: give databases more time with Docker Stop Timeout before Unraid kills them

Docker
~/tips/tip-unraid-docker-stop-timeout

time docker stop my-database

The Unraid setting that decides how long a container gets to shut down cleanly.

When Unraid stops a container, it asks politely first and forces it after a wait. The wait is Settings, Docker, Docker Stop Timeout (seconds), and a default of 10 seconds is short for a busy database.

A database that is killed mid-write can need recovery at the next start, or worse. This matters most when you stop the whole array, reboot, or when a backup tool stops containers one by one.

Set a value that covers your slowest app. Thirty to sixty seconds is a reasonable place to start. Then time a stop to see what an app really needs:

time docker stop my-database

Unraid’s own shutdown time-out under Disk Settings is a different setting and should stay longer than all your containers together need.

Further reading: Unraid docs: Docker overview

More Docker tips ONBUILD RUN /usr/local/bin/python-build --dir /app/src SHELL ["/bin/bash", "-c"] docker commit <container> myname/testimage:version3 docker import /path/to/exampleimage.tgz docker compose events All Docker tips (192) All topics

Link