Interview Prep/Docker/Dockerfile Instructions & Builds

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.

All Docker questions Roadmap: Docker & containers

More on Dockerfile Instructions & Builds