Docker Community Forums

Share and learn in the Docker community.

How rolling update works in swarm mode?


(Saravana9210) #1

I am running 4 servers (containers) on a single docker engine. Now if I wanna update these containers, how to apply rolling updates?

Just $ docker service update --image redis:3.0.7 redis command as mentioned in https://docs.docker.com/engine/swarm/swarm-tutorial/rolling-update/ is not sufficient since I’ve to add few more ENV variables when updating using a new image.

So, basically can someone explain how rolling update works with docker

Thanks in avance :slight_smile: