mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
also keep the original markdown docs :P~
This commit is contained in:
parent
d1f7c11f20
commit
ac05caa609
11 changed files with 448 additions and 2 deletions
14
docs/stop-signals.md
Normal file
14
docs/stop-signals.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
When watchtower detects that a running container needs to be updated it will stop the container by sending it a SIGTERM signal.
|
||||
If your container should be shutdown with a different signal you can communicate this to watchtower by setting a label named _com.centurylinklabs.watchtower.stop-signal_ with the value of the desired signal.
|
||||
|
||||
This label can be coded directly into your image by using the `LABEL` instruction in your Dockerfile:
|
||||
|
||||
```docker
|
||||
LABEL com.centurylinklabs.watchtower.stop-signal="SIGHUP"
|
||||
```
|
||||
|
||||
Or, it can be specified as part of the `docker run` command line:
|
||||
|
||||
```bash
|
||||
docker run -d --label=com.centurylinklabs.watchtower.stop-signal=SIGHUP someimage
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue