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
Settingstab. - Go to the
Environment Variablessection. - Set the
WATCHTOWER_CLEANUPtotrueto remove old images after updating. - Optionally, set other environment variables such as
WATCHTOWER_SCHEDULEto 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