Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.
Discussion options

You must be logged in to vote

Container selection occurs by filtering running containers. On startup, this filter is built based on the passed arguments:

func BuildFilter(names []string, enableLabel bool) t.Filter {

Currently, to build a container filter, the following local filters are set as a kind of pipeline:

  1. Filter by name (returns true for all containers that are on the names list if it is set)
  2. Filter by enabled label (returns true for all containers with the label com.centurylinklabs.watchtower.enable=true if --label-enable is used)
  3. Filter by disabled label (returns false for all containers with the label com.centurylinklabs.watchtower.enab…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by simskij
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants