Why might docker stop wait for the full timeout here?
CMD npm start
- The image lacks a STOPSIGNAL
- The container has no HEALTHCHECK defined
- A shell is PID 1 and drops SIGTERM
- npm ignores every Unix signal
Shell form wraps the command in /bin/sh -c, which runs as PID 1 and does not forward SIGTERM, so Docker falls back to SIGKILL.
Play DevOps ▸