Skip to main content

🔁 Automating Docker Updates with Watchtower

Watchtower automatically updates Docker containers when a new image is available.


🔹 Step 1: Install Watchtower

docker run -d \\
--name watchtower \\
-v /var/run/docker.sock:/var/run/docker.sock \\
containrrr/watchtower

🔹 Step 2: Enable Email Notifications (Optional)

docker run -d \\
--name watchtower \\
-v /var/run/docker.sock:/var/run/docker.sock \\
-e WATCHTOWER_NOTIFICATIONS=email \\
-e WATCHTOWER_NOTIFICATION_EMAIL_FROM=\"[email protected]\" \\
-e WATCHTOWER_NOTIFICATION_EMAIL_TO=\"[email protected]\" \\
-e WATCHTOWER_NOTIFICATION_EMAIL_SERVER=\"smtp.your-mail-server.com\" \\
containrrr/watchtower

✅ Watchtower now checks for updates and notifies you via email.

© 2025 TokioStack. All rights reserved.
DMCA.com Protection Status