Read the statement by Michael Teeuw here.
Updating a Docker Mirror image
-
I’ve setup in my centos 7 box, a docker mirror image following the instructions in github. All works ok, but I want to know the right update sequence. Is sufficient to make a:
docker pull bastilimbach/docker-magicmirror
and restart my docker istance, or what else?
-
@technofab that should be the typical approach, assuming the docker image doesn’t change any implementation details between releases… (Only seen THAT a million times!)
-
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=alwaysthen 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/
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login