July 2017
Beginner to intermediate
340 pages
7h 43m
English
Deploying a microservice at scale can be done by running several containers spread across one or several hosts.
Once your Docker image is created, every host that runs a Docker daemon can be used to run as many containers as you want within the limits of the physical resources. Of course, if you run several instances of the same container on the same host, you need to use a different name and socket ports for each instance to differentiate them.
The collection of containers running the same image is called a cluster, and there are a few tools available to manage clusters.
Docker has a built-in cluster functionality called swarm mode (https://docs.docker.com/engine/swarm/). This mode has an impressive ...