Fork me on GitHub

Herr Knedel/Short story: Automatically update containers with Watchtower

Created Sun, 25 Apr 2021 09:28:11 +0100 Modified Mon, 28 Mar 2022 18:08:28 +0000 Difficulty level: Not too easy and not too hard

146 Words

If you run Docker containers on your disk station, you naturally want them to always be up to date. Watchtower updates images and containers automatically. This way you can enjoy the latest features and the most up-to-date data security. Today I will show you how to install Watchtower on your Synology DiskStation.

Step 1: Prepare Synology

The first thing to do is to enable SSH login on Diskstation. To do this, go to the “Control Panel” > “Terminal

After that you can log in via “SSH”, the specified port and the administrator password (Windows users take Putty or WinSCP). I log in via Terminal, winSCP or Putty and leave this console open for later.

Step 2: Install Watchtower

I use the console for this:

x
+
Terminal

$ docker run --name watchtower --restart always -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower

After that, Watchtower always runs in the background.