Watchtower
Watchtower for Docker is a valuable tool because it automates the process of keeping your Docker containers up-to-date with the latest images. It monitors your running Docker containers and updates them to the newest available image, reducing manual oversight and increasing the efficiency and security of your applications.
Quick Start
Running via Command-line is very simple:
$ docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower
Because the --restart
parameter is missing, the container will not automatically start after a reboot, so you might want to use this instead:
$ docker run -d \
--name watchtower \
--restart unless-stopped \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower
Get notifications from Watchtower
Personally I like to install Watchtower with notifications enabled. Watchtower will notify me via Telegram when it finds a new version of a container and install it:

I start the Watchtower container with this command:
docker run -d \
--name watchtower \
--restart unless-stopped \
--hostname $(hostname) \
-v /var/run/docker.sock:/var/run/docker.sock \
-e TZ=Europe/Amsterdam \
-e WATCHTOWER_NOTIFICATIONS=shoutrrr \
-e WATCHTOWER_NOTIFICATION_URL=telegram://APITOKEN@telegram/?channels=CHATID \
containrrr/watchtower
Here's a short tutorial on how to get a new bot up and running in Telegram:
Create a new bot in Telegram
1. Create a Bot and get the API Token:
- Open Telegram and search for the "BotFather" bot.
- Start a chat with BotFather and type the command
/newbot
.
- Follow the instructions provided by BotFather to name your bot and get your HTTP API access token.
2. Get the Chat ID:
- Open Telegram and search for the "getidsbot" bot.
- Start a chat with getidsbot and type the command
/start
.
- The bot will automatically reply with your unique chat ID.
Note: Remember to keep your API token private, as it allows anyone to make requests to the Telegram API on behalf of your bot.