Read the statement by Michael Teeuw here.
Updating a Docker Mirror image
-
Mmhmm great, so what you suggest? Backup config and modules delete all, reinstall container and restore config and modules?
-
@technofab well, TRY it…
-
For now I suppose this scenario:
docker stop magic_mirror
docker rm magic_mirror
docker system prune -a -f
docker run -d --publish 80:8080 --restart always…In this way I suppose that after run is completed is full updated.
-
@technofab looks like docker added a new flag to handle some of this
on docker run
--pull=[always,*missing,never]
I think there should have been ‘updated’ too
so add
--pull=always
then u don’t need the other steps
-
I don’t know that switch! But it read from dockerfile? My strategy is a bit longer but it can guarantee that all is updated and I can also add git pull for every module in the sequence…
Edit: I give a try, but not works, and didn’t find that on documentation.
https://docs.docker.com/engine/reference/commandline/run/