Quick Watchtower Install and its Basic Maintinence Script
Watchtower Installation Script:
docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower
Watchtower Maintinence Script:
To install Crontab, enter the following command:
sudo apt-get install cron
Then, enter the following command:
crontab -e
Insert the following line:
0 0 * * * /usr/bin/docker system prune -af