Automatically restart Docker containers whenever their base image is refreshed.
50M+
RPI-Watchtower is an application that will monitor your running Docker containers and watch for changes to the images that those containers were originally started from. If watchtower detects that an image has changed, it will automatically restart the container using the new image.
With RPI-Watchtower you can update the running version of your containerized app simply by pushing a new image to the Docker Hub or your own image registry. RPI-Watchtower will pull down your new image, gracefully shut down your existing container and restart it with the same options that were used when it was deployed initially.
Run the rpi-watchtower container followed by your RPi <ARM_VERSION>. So the following command would execute the binary on a ARM6 device:
docker run -d
--name watchtower
-v /var/run/docker.sock:/var/run/docker.sock
talmai/rpi-watchtower 6
If pulling images from private Docker registries, supply registry authentication credentials with the environment variables REPO_USER and REPO_PASS or by mounting the host's docker config file into the container (at the root of the container filesystem /).
docker run -d
--name watchtower
-v /home//.docker/config.json:/config.json
-v /var/run/docker.sock:/var/run/docker.sock
-e REPO_USER=xxx -e REPO_PASS=xxx
talmai/rpi-watchtower 6 --apiversion=1.24 --debug container_to_watch
More details and code: https://github.com/talmai/rpi-watchtower
Content type
Image
Digest
Size
53.6 MB
Last updated
over 9 years ago
docker pull talmai/rpi-watchtower