A process for automating Docker container base image updates.
A process for automating Docker container base image updates.
With 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.
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 watchtower container with the following command:
$ docker run --detach \
--name watchtower \
--volume /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtowerWatchtower is intended to be used in homelabs, media centers, local dev environments, and similar. We do not recommend using Watchtower in a commercial or production environment. If that is you, you should be looking into using Kubernetes. If that feels like too big a step for you, please look into solutions like MicroK8s and k3s that take away a lot of the toil of running a Kubernetes cluster.
The full documentation is available at https://containrrr.dev/watchtower.
Thanks goes to these wonderful people (emoji key):
Incorrect docker version detection
"Error response from daemon: client version 1.25 is too old"
Here’s a possible solution: feel free to try my version with Docker 29.
Container does not get updated
Support GCP Artifact Registry
Nextcloud All-In-One fails to update, watchtover segfaults?
[Feature Request] Support for Podman
project dead? no commits in 2+ years. alternatives?
container dies with python error
Enabling the HTTP API enables a debug endpoint (/debug/vars)