# \[Help\] Config watchtower

**URL:** <https://community.gladysassistant.com/t/help-config-watchtower/7227>\
**Category:** Configuration\
**Created:** [April 29, 2022, 9:43pm UTC](https://community.gladysassistant.com/t/help-config-watchtower/7227 "2022-04-29T21:43:29Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [April 29, 2022, 9:43pm UTC](https://community.gladysassistant.com/t/help-config-watchtower/7227/1 "2022-04-29T21:43:29Z")

</div>

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?

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/e/ed2a53071f4997e823cf3a9635a808700e647954.jpeg)

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [April 30, 2022, 6:26am UTC](https://community.gladysassistant.com/t/help-config-watchtower/7227/2 "2022-04-30T06:26:12Z")

</div>

Yes, it’s described in the Watchtower documentation

> **[Container selection - Watchtower](https://containrrr.dev/watchtower/container-selection/)**

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [April 30, 2022, 6:46am UTC](https://community.gladysassistant.com/t/help-config-watchtower/7227/3 "2022-04-30T06:46:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [April 30, 2022, 6:52am UTC](https://community.gladysassistant.com/t/help-config-watchtower/7227/4 "2022-04-30T06:52:49Z")

</div>

These are not labels

> **[docker container run](https://docs.docker.com/reference/cli/docker/container/run/)**

In your docker run you must add your label

`--label foo=bar`

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [April 30, 2022, 7:11am UTC](https://community.gladysassistant.com/t/help-config-watchtower/7227/5 "2022-04-30T07:11:28Z")

</div>

Ahh ok thx !

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [April 30, 2022, 7:14am UTC](https://community.gladysassistant.com/t/help-config-watchtower/7227/6 "2022-04-30T07:14:16Z")

</div>

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

```auto
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

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [April 30, 2022, 7:20am UTC](https://community.gladysassistant.com/t/help-config-watchtower/7227/7 "2022-04-30T07:20:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [May 2, 2022, 7:20am UTC](https://community.gladysassistant.com/t/help-config-watchtower/7227/8 "2022-05-02T07:20:04Z")

</div>

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:

> [@Dockerode label pour mise a jour des containers](https://community.gladysassistant.com/t/dockerode-label-pour-mise-a-jour-des-containers/6995/5?u=pierre-gilles):
>
> Ok je comprend mieux, mais du coup on est d’accord c’est toi qui lance Watchtower ? Watchtower peut prendre des arguments, et en argument tu peux lui passer la liste des containers que tu veux mettre à jour slight_smile Example : Pourquoi ne pas lancer watchtower et lui mettre la liste des containers que tu veux mettre à jour ?

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [May 2, 2022, 7:24am UTC](https://community.gladysassistant.com/t/help-config-watchtower/7227/9 "2022-05-02T07:24:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [May 2, 2022, 7:05pm UTC](https://community.gladysassistant.com/t/help-config-watchtower/7227/10 "2022-05-02T19:05:20Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [May 2, 2022, 8:16pm UTC](https://community.gladysassistant.com/t/help-config-watchtower/7227/11 "2022-05-02T20:16:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [May 2, 2022, 8:19pm UTC](https://community.gladysassistant.com/t/help-config-watchtower/7227/12 "2022-05-02T20:19:20Z")

</div>

I saw that when it recreated
