mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
feat(filters): Add a flag/env to explicitly exclude containers by name (#1784)
This commit is contained in:
parent
9180e9558e
commit
623f4e67fb
5 changed files with 118 additions and 19 deletions
|
@ -230,6 +230,19 @@ __Do not__ Monitor and update containers that have `com.centurylinklabs.watchtow
|
|||
no `--label-enable` argument is passed. Note that only one or the other (targeting by enable label) can be
|
||||
used at the same time to target containers.
|
||||
|
||||
## Filter by disabling specific container names
|
||||
Monitor and update containers whose names are not in a given set of names.
|
||||
|
||||
This can be used to exclude specific containers, when setting labels is not an option.
|
||||
The listed containers will be excluded even if they have the enable filter set to true.
|
||||
|
||||
```text
|
||||
Argument: --disable-containers, -x
|
||||
Environment Variable: WATCHTOWER_DISABLE_CONTAINERS
|
||||
Type: Comma- or space-separated string list
|
||||
Default: ""
|
||||
```
|
||||
|
||||
## Without updating containers
|
||||
Will only monitor for new images, send notifications and invoke
|
||||
the [pre-check/post-check hooks](https://containrrr.dev/watchtower/lifecycle-hooks/), but will __not__ update the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue