Dev Radar
Support
LiveUpdated 2026-11-25 18:41 UTC

If docker stop always takes about 10 seconds, the app never reacted to SIGTERM, and…

If docker stop always takes about 10 seconds, the app never reacted to SIGTERM, and Docker killed it when the grace…

This is a dev post classified by AGK Intelligence as Hosting & infra (a tutorial), kept by the Dev Radar because it carries real work, not commentary.

If docker stop always takes about 10 seconds, the app never reacted to SIGTERM, and Docker killed it when the grace period ran out. There are two usual reasons. With shell form, or an entrypoint script without exec, PID 1 can be the shell, and the shell doesn't pass the signal on. The other is easy to miss. Even with the app as PID 1, Linux gives PID 1 no default action for SIGTERM, so an app without a handler just ignores it. So the fix has two parts. Use exec form, or end the script with exec "$@", so the app is PID 1. Then handle SIGTERM in the app. If you can't change the app, docker ru

Posted by Prateek Jain (4.8k followers) 9 days ago · 3 likes · 75 views · view the original post on X. Kept by the Dev Radar as Hosting & infra.

More dev work like this

Every post is read and classified by AGK Intelligence: what it is, which market it belongs to, and whether the link is a real tool. 13.4k posts from 5k X accounts over the last 21 days, 10.1k tools, 12 markets. New posts are collected several times an hour and the full ranking is recomputed every hour — last update 2026-11-25 18:41 UTC. Full method.