[Help] Config watchtower

Hello!

I’m going to migrate Gladys to my Synology NAS soon.
I already have quite a few containers on it:

  • Heimdall
  • AdGuardHome
  • Node-RED
  • Ubooquity

I installed Gladys to run a few tests (restore Gladys plus [which works perfectly], support for dongles [I need to check for a Bluetooth dongle]…). In short, I’m convinced.

But then I thought to myself, I need Watchtower to take advantage of updates!

So I installed it and that’s when the drama started.

I lost all my Node-RED configuration due to an update.

Is there a way to exclude containers? Because I don’t want to end up with my non-Gladys containers crashing every morning?

Yes, it’s described in the Watchtower documentation

So I just need to add an environment variable com.centurylinklabs.watchtower.enable to false on the containers?

These are not labels

In your docker run you must add your label

--label foo=bar

Ahh ok thx !

And your watchtower container must be launched with --label-enable

If you need to [include only containers with the enable label](https://containrrr.github.io/watchtower/arguments/#filter_by_enable_label)
pass the `--label-enable` flag or the `WATCHTOWER_LABEL_ENABLE` environment variable on startup and set the *com.centurylinklabs.watchtower.enable* label with a value of `true` for the containers you want to watch.

I recommend Portainer to manage your containers, you can easily edit your containers

I note it well!
I didn’t know about the labels under docker :open_mouth:

I don’t necessarily recommend using labels for that, because some containers that you don’t launch yourself won’t have the label (Zigbee2mqtt for example), and above all it requires you to restart containers.

There is another, simpler way to tell watchtower which containers to launch: pass it as a parameter the list of containers to update:

[quote=« pierre-gilles, post:8, topic:7227 »]
I

FYI, watchtower updates even containers that don’t have the label com.centurylinklabs.watchtower.enable set to true

It should only exclude a container when it has the label com.centurylinklabs.watchtower.enable set to false

It’s not in the documentation, but it’s good to know.

I saw that when it recreated