What does `STOPSIGNAL` do?
IntermediateConceptDockerfile Instructions & Builds
Answer
It sets the signal sent by docker stop instead of SIGTERM. Example: nginx wants SIGQUIT for graceful shutdown, so the official image sets STOPSIGNAL SIGQUIT. Can also be set per container with --stop-signal.