In this chapter, we took a look at the clustering methods for Docker environments that enable setting up the complete staging/production/Jenkins environment. Here are the key takeaways from the chapter:
- Clustering is a method of configuring a set of machines in a way that, in many respects, can be viewed as a single system
- Docker Swarm is the native clustering system for Docker
- Docker Swarm clusters can be dynamically configured using built-in Docker commands
- Docker images can be run and scaled on the cluster using the docker service command
- Docker Stack is a method to run the Docker Compose configuration on a Swarm cluster
- The most popular clustering systems that support Docker are Docker Swarm, Kubernetes, and Apache Mesos
- Jenkins agents can be run on a cluster using the dynamic slave provisioning or the Jenkins Swarm plugin
In the next chapter, we will describe the...