Skip to content

Define default stop signal in Dockerfile or update Documentation #46

@so0k

Description

@so0k

The upcoming docker 1.9 release will add support for defining the default stop signal sent by docker stop:

  1. At run time through the --stop-signal option added to docker run
  2. At build time through the STOP keyword in the Dockerfile syntax.

Prior to this addition, alternative signals had to be sent using docker kill -s with the desired signal. (I feel this information should be added to the docker hub documentation for the official nginx images) considering nginx expects SIGQUIT for graceful shut down while docker stop sends SIGTERM by default (causing a fast shutdown by default and not a gracefull shutdown).

As detailed in the nginx documentation here:

Signal master process action
TERM, INT fast shutdown
QUIT graceful shutdown
HUP changing configuration, keeping up with a changed time zone (only for FreeBSD and Linux), starting new worker processes with a new configuration, graceful shutdown of old worker processes
USR1 re-opening log files
USR2 upgrading an executable file
WINCH graceful shutdown of worker processes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions