Various notes on using Docker. Mostly OS-agnostic, but may include OS-specific tips and tricks.
Running
Config tricks
Maintenance Activities
Updating Docker Images
Watchtower
To easily manage docker image updates in a #homelab setting, look into using Watchtower by "containerrr"
Basic startup command
docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower
By default, Watchtower will update all running containers on the system. To have it monitor specific images, specify their name on the command line as an argument, no flag needed.
Cleaning up
- Some Docker cleanup commands I’ve collected