$ ./guess_the_languageDevOps
DevOps · hard · #221

Why might docker stop wait for the full timeout here?

CMD npm start
  1. The image lacks a STOPSIGNAL
  2. The container has no HEALTHCHECK defined
  3. A shell is PID 1 and drops SIGTERM
  4. 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 ▸