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.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to After moving from a single-region to a multi-region active-active deployment, the team starts seeing intermittent data inconsistencies between regions for a service that wasn't redesigned for this change.← Back to all Docker questions