Interview Prep/Docker/Resources, health checks, logging and restarts

`docker stop` hangs then kills; app data corrupted because shutdown never completed.

AdvancedTroubleshootingResources, health checks, logging and restarts
Answer

Likely causes → Shutdown takes longer than 10 s default stop timeout.

Diagnose → Time docker stop c; look at app shutdown logs.

Fix → docker stop -t 60, stop_grace_period: 60s, handle SIGTERM, correct STOPSIGNAL (for example SIGINT/SIGQUIT for some servers).

Prevent → Test graceful shutdown.

All Docker questions Roadmap: Docker & containers

More on Resources, health checks, logging and restarts