Rolling Updates

Learn how Docker simplifies the process of updating microservices apps.

Application updates are a fact of life, 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, but for now, it’s enough to know that they span all swarm nodes and that all ...