In this section, we will do a brief overview of Docker Swarm. We will take a look at what it is, what you can do with it to manage your containers, and what to look forward to in the later chapters with regards to Docker Swarm.
The idea behind Docker Swarm is to have native clustering available inside Docker. This will allow you to both easily scale your environments as well as manage them from a central location. The best part is that, since it's tied so tightly with the Docker API, any command you use with Docker can be used in conjunction with managing the nodes in your Swarm cluster. The setup is very simple as follows:
You install the Swarm component through a
docker pull
command.You then set up and configure the Swarm manager.
Lastly, you add the nodes to Docker Swarm.
This setup uses the TCP communication between all the Swarm nodes through an open TCP port. It also requires that you have Docker installed on each node (as if we'd not want it installed...