Watchtower Setup Guide - ajgillis04/GillisDockerDepot GitHub Wiki
Watchtower is a Docker container that automatically updates running containers to the latest version of their images. It's useful for keeping your containers up-to-date without manual intervention.
- Docker installed
- Watchtower container running in your Docker stack
- Open your browser and navigate to
http://<your-ip-address>:<port>
. - Log in with your Watchtower credentials.
- Follow the initial setup wizard to configure basic settings.
- Choose your preferred language for the Watchtower interface.
- Navigate to the
Settings
tab. - Go to the
Environment Variables
section. - Set the
WATCHTOWER_CLEANUP
totrue
to remove old images after updating. - Optionally, set other environment variables such as
WATCHTOWER_SCHEDULE
to specify the update schedule (e.g.,0 0 2 * * *
for 2 AM daily updates). - Click
Save
.
- Open your terminal and run the following command:
docker run -d --name watchtower \ -v /var/run/docker.sock:/var/run/docker.sock \ containrrr/watchtower