Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

4. automated updates

roobbb edited this page Jul 1, 2021 · 1 revision

keeping container up to date on your machine

docker run -d \
 --name watchtower \
 --restart=always \
 -v /etc/timezone:/etc/timezone:ro \
 -v /var/run/docker.sock:/var/run/docker.sock \
 -e WATCHTOWER_NOTIFICATIONS=shoutrrr \
 -e WATCHTOWER_NOTIFICATION_URL="telegram://123456789:aabbccddeef-abcdefghijklmnopqrstuvw@telegram?channels=987654321" \
 containrrr/watchtower:armhf-latest \
  --schedule "0 0 0 * * SUN" \
  --cleanup
  • starts watchtower and let it check every Sunday if a new version of latest is available
  • if so, it downloads latest, removes the old one and starts the new one
  • finally it informs via telegram what has been done