[Help] Config watchtower

Hello !

Je vais bientot migrer gladys sur mon nas synology.
Sur celui ci jai déjà pas mal de container :

  • heimdall
  • adguardhome
  • nodered
  • ubooquity

Jai installer gladys pour faire deux trois tests (restore gladys plus [qui fonctionne parfaitement], prise en charge des dongles [il faut que je regarde pour un dongle Bluetooth]…) bref je suis convaincu.

Sauf que la je me suis dis il me faut watchtower pour profiter des maj !

Du coup je lai installer et la c’etait le drame.

Jai perdu toute ma config nodered suite a une maj.

Y a til un moyen d’exclure des containers ? Car jai pas envie de me retrouver avec mes containers non gladys qui plante tout les 4 matins ?

Oui c’est décrit dans la doc watchtower

https://containrrr.dev/watchtower/container-selection/

Donc jai juste besoin dajouter une var d’environnement com.centurylinklabs.watchtower.enable a false sur les containers ?

Non ce sont des labels

A ton docker run tu dois ajouter ton label

--label foo=bar

1 Like

Ahh ok thx !

Et ton container watchtower doit être lancer avec --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.

Je te conseil portainer pour gérer tes conteneur, tu peux éditer tes conteneur facilement

1 Like

Je note merci bien !
Je ne connaissais pas les labels sous 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

1 Like

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.

1 Like

I saw that when it recreated