mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
always exclude containers that have the com.centurylinklabs.watchtower.enable set to false.
Fixes #169
This commit is contained in:
parent
026a04b59b
commit
6c12aee975
2 changed files with 29 additions and 3 deletions
12
README.md
12
README.md
|
@ -131,6 +131,18 @@ docker run -d --label=com.centurylinklabs.watchtower.stop-signal=SIGHUP someimag
|
|||
|
||||
By default, watchtower will watch all containers. However, sometimes only some containers should be updated.
|
||||
|
||||
If you need to exclude some containers, set the *com.centurylinklabs.watchtower.enable* label to `false`.
|
||||
|
||||
```docker
|
||||
LABEL com.centurylinklabs.watchtower.enable="false"
|
||||
```
|
||||
|
||||
Or, it can be specified as part of the `docker run` command line:
|
||||
|
||||
```bash
|
||||
docker run -d --label=com.centurylinklabs.watchtower.enable=false someimage
|
||||
```
|
||||
|
||||
If you need to only include only some containers, pass the --label-enable flag on startup and set the *com.centurylinklabs.watchtower.enable* label with a value of true for the containers you want to watch.
|
||||
|
||||
```docker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue