Skip to content

Creating a Whitelist or Blacklist for Watchtower to Ignore Certain Dockers #1697

Answered by Migelo
vawaver asked this question in Q&A
Discussion options

You must be logged in to vote

1+ years late, but still. 👋 search engine people.

You can achieve this by restricting watchtowerr to only update labeled containers and then add the labels to containers you want to update

  1. Run watchtower with the enable label feature turned on,
  2. add com.centurylinklabs.watchtower.enable: "true" to any container you want watchtower to monitor.

watchtower/docker-compose.yml

services:
  watchtower:
    restart: unless-stopped
    image: containrrr/watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - WATCHTOWER_LABEL_ENABLE=true

mycontainer/docker-compose.yml

services:
  jellyfin:
    labels:
      com.centurylinklabs.watchtower.enable: "true"

Y…

Replies: 3 comments 1 reply

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
1 reply
@Migelo
Comment options

Answer selected by vawaver
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