Intall Watchtower with E-Mail (Gmail) Notifications

Use the following code to install watchtower with gmail notifications. See more information and documentation here.

sudo docker run -d \
  --name watchtower \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -e WATCHTOWER_NOTIFICATIONS=email \
  -e WATCHTOWER_NOTIFICATION_EMAIL_FROM=youremail@gmail.com \
  -e WATCHTOWER_NOTIFICATION_EMAIL_TO=youremail@gmail.com \
  -e WATCHTOWER_NOTIFICATION_EMAIL_SERVER=smtp.gmail.com \
  -e WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=youremail@gmail.com \
  -e WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=your-email-password \
  -e WATCHTOWER_NOTIFICATION_EMAIL_DELAY=2 \
  containrrr/watchtower

Without email notifications

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

Revision #3
Created 14 September 2020 08:48:57 by Jeremy
Updated 16 September 2020 15:16:11 by Jeremy