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

There are two ways of doing this, and usually, you'd pick the one which gives you to the least amount of duplication in your config:

Exclude everything except when the enable label is set to true:

  watchtower:
    [...]
    environment:
      WATCHTOWER_LABEL_ENABLE: 1
  included:
    [...]
    labels:
      com.centurylinklabs.watchtower.enable: "true"
  excluded:
    [...]

Include everything except when the enable label is set to false:

  watchtower:
    [...]
  included:
    [...]
  excluded:
    [...]
    labels:
      com.centurylinklabs.watchtower.enable: "false"    

Additional details in https://containrrr.dev/watchtower/arguments/#filter_by_disable_label and https://containrrr.de…

Replies: 12 comments 5 replies

Comment options

You must be logged in to vote
0 replies

This comment has been hidden.

Comment options

You must be logged in to vote
0 replies

This comment has been hidden.

This comment has been hidden.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment has been hidden.

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
4 replies
@KevoM
Comment options

@piksel
Comment options

@Trufax
Comment options

@piksel
Comment options

Answer selected by simonaronsson
Comment options

You must be logged in to vote
1 reply
@simonaronsson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
9 participants