Open
Description
Since it may be non-obvious for those new to Docker.
Basically, the easiest way is to go into each directory in the home folder (in this example, Pi-hole), and pull the images using docker-compose
, then restart so it's running the latest image:
# Pi-hole update example
cd ~/pi-hole
docker-compose pull # pulls the latest images inside the compose file
docker-compose up -d --no-deps # restarts necessary containers with newer images
docker system prune --all # deletes unused container images
You would need to do that manually inside each of the associated docker-compose-containing directories from time to time.
It might be good to do the following so this can be somewhat automated:
- Create a separate playbook or task file that backs up all the relevant configurations/Docker volumes (most notably, pi-hole).
- Create a playbook that upgrades all images (doing the above, but in each managed directory).
- Add documentation on how to run the playbook (and recover from backup in case of failure).
Maybe don't do the system prune by default in case someone does need to quickly recover back to an older image with a backup restore.