Watchtower
Watchtower is a helper container that periodically updates containers to the most recent version for the specific tag.
Setup
By default, watchtower will monitor all containers
docker run -d \
-v /var/run/docker.sock:/var/run/docker.sock \
--name Watchtower \
containrrr/watchtower
If you want to specify specific containers to monitor, add extra parameters
docker run -d \
-v /var/run/docker.sock:/var/run/docker.sock \
--name Watchtower \
containrrr/watchtower \
ESPHome
You can also specify containers to be automatically updated based on label. To enable a container to update, set the container label com.centurylinklabs.watchtower.enable
to true
docker run -d \
-v /var/run/docker.sock:/var/run/docker.sock \
-e WATCHTOWER_LABEL_ENABLE=true \
--name Watchtower \
containrrr/watchtower