10: Docker Swarm
Now that we know how to install Docker, pull images, and work with containers, the next thing we need is a way to do it all at scale. That’s where Docker Swarm comes into play.
As usual, we’ll split this chapter into three parts:
- The TLDR
- The deep dive
- The commands
Docker Swarm - The TLDR
Docker Swarm is two things:
- An enterprise-grade secure cluster of Docker hosts
- An orchestrator of microservices apps
On the clustering front, Swarm groups one or more Docker nodes and lets you manage them as a cluster. Out-of-the-box, you get an encrypted distributed cluster store, encrypted networks, mutual TLS, secure cluster join tokens, and a PKI that makes managing and rotating certificates a breeze. You can even non-disruptively add and remove nodes. It’s a beautiful thing.
On the orchestration front, Swarm allows you to deploy and manage complex microservices apps with ease. You can define your apps in declarative files and deploy them...