advancedScenario-Based & System Design Questions
A container respects SIGTERM correctly in local testing but production deployments still show a hard 10-second delay (full SIGKILL timeout) on every restart.
Verify whether the Dockerfile uses exec-form CMD/ENTRYPOINT — if it's still in shell form, the shell (PID 1) may not be properly forwarding SIGTERM to the actual application process, so the app never receives the signal it was correctly designed to handle, and Docker eventually SIGKILLs after the grace period elapses regardless.
This is a Pro chapter
Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.
A container respects SIGTERM correctly in local testing but production deployments still show a hard 10-second delay (full SIGKILL timeout) on every restart.