STOPSIGNAL

The Dockerfile instruction that sets which signal docker stop sends to the container's main process.

In more detail

The default is the termination signal, so the instruction mostly documents the shutdown contract or changes it for programs that expect another signal. Docker waits for the grace period after sending it, then sends the kill signal.

Example

STOPSIGNAL SIGTERM

Related terms

Taught in

References

Certification courses