How does container selection and filtering work? #519
-
|
The Arguments page in the docs says But on the Container selection page it says Is setting this to false necessary if you specify the containers you want to update when launching? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏 |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I like t make a crosslink to closed issue label com.centurylinklabs.watchtower.enable=false is ignored #225 which comes in this context relevant to me and maybe you. |
Beta Was this translation helpful? Give feedback.
-
|
Container selection occurs by filtering running containers. On startup, this filter is built based on the passed arguments: watchtower/pkg/filters/filters.go Line 55 in 3e069a7 Currently, to build a container filter, the following local filters are set as a kind of pipeline:
At runtime, every container that returns false for any one of these filters will not be monitored. So, if you don't include a container's name on the list (considering that there is a list), it should be ignored as it won't return true for this criteria.
No, it doesn't seem necessary. |
Beta Was this translation helpful? Give feedback.
Container selection occurs by filtering running containers. On startup, this filter is built based on the passed arguments:
watchtower/pkg/filters/filters.go
Line 55 in 3e069a7
Currently, to build a container filter, the following local filters are set as a kind of pipeline:
com.centurylinklabs.watchtower.enable=trueif --label-enable is used)com.centurylinklabs.watchtower.enab…