implemented enableLabel by a Filter

This commit is contained in:
Fabrizio Steiner 2018-03-02 17:22:42 +01:00
parent f5fb4ed6a2
commit 026a04b59b
6 changed files with 79 additions and 46 deletions

View file

@ -129,9 +129,9 @@ docker run -d --label=com.centurylinklabs.watchtower.stop-signal=SIGHUP someimag
## Selectively Watching Containers
By default, watchtower will watch all containers.
However, sometimes only some containers should be updated.
If you need to selectively watch 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.
By default, watchtower will watch all containers. However, sometimes only some containers should be updated.
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
LABEL com.centurylinklabs.watchtower.enable="true"