The Container Lifecycle: docker run, ps, logs, exec, stop and Exit Codes
docker stop sends SIGTERM, or the image's STOPSIGNAL, to the container's PID 1, waits 10 seconds and then sends SIGKILL; if the app was started behind a shell, the signal never arrives and the container dies with 137. With real output we cover container states, logs and exec, exit codes 0/1/137/139/143, ProcessExit no longer running on SIGTERM in .NET 10, graceful shutdown with the Generic Host, and restart policies.
14 Nov 2026
·
14 min
·
14