Search⌘ K

Rolling Updates

Explore how to deploy rolling updates in Docker Swarm by creating overlay networks and updating services with controlled parallelism and delay. Learn to maintain zero downtime while updating live applications across multiple swarm nodes using ingress mode.

Application updates are a fact, and for the longest time, they were painful. Fortunately, thanks to Docker services, updating well-designed microservices apps is easy.

Terminology: We use terms like rollouts, updates, and rolling updates to mean the same thing— updating a live application.

Creating an overlay network

You’re about to deploy a new service to help demonstrate a rollout. However, before doing that, you’ll create a new overlay network for the service. This isn’t necessary, but we want you to see how to attach services to networks.

Run the following two commands to create a new overlay network called uber-net and then check if it exists.

$ docker network create -d overlay uber-net
43wfp6pzea470et4d57udn9ws
$ docker network ls
NETWORK ID NAME DRIVER SCOPE
43wfp6pzea47 uber-net overlay swarm
<Snip>
Creating an overlay network named uber-net and listing all networks

The new network exists and was successfully created as an overlay network scoped to the entire swarm. We’ll learn about overlay networks in a later chapter. For now, it’s enough to know that they span all swarm nodes and that all containers on the same ...