Watchtower: [Question] Exclude container

Created on 30 Aug 2018  路  5Comments  路  Source: containrrr/watchtower

I run a container with the following command, to exclude it from watchtower:

sudo docker run \
  --restart=always \
  --net prod-network --ip 172.18.0.109 \
  --name=prod-mqtt-http-api \
  --label=com.centurylinklabs.watchtower.enable=false \
  mqtt-api

Is it the right syntax? Because Watchtower still tries to update this image.

Most helpful comment

You have to make sure you set "--label-enable" on the watchtower command line, or label functionality won't work.

All 5 comments

I would say just ignore the label altogether.

I'm running into this same problem. Watchtower ignores the label and updates my container. I would also like to know what is wrong.

Same problem here. Passing the False lable nut still keeps getting updates.

Any suggestions?

You have to make sure you set "--label-enable" on the watchtower command line, or label functionality won't work.

What @mpatton125 said.
Closing this issue as solved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michael-siebers picture michael-siebers  路  5Comments

andreo picture andreo  路  6Comments

Ezwen picture Ezwen  路  6Comments

regystro picture regystro  路  5Comments

meandthedevil picture meandthedevil  路  6Comments