The purpose of this article is to explore new Docker networking features introduced in version 1.9. We’ll apply them to a Docker Swarm cluster. For practice purposes we’ll be deploying containers to a Swarm cluster created locally with Vagrant and running Consul as a service registry and Registrator as a tool that will monitor Docker daemons and register/de-register containers we run/stop. When combined, Consul and Registrator will act as service discovery within our cluster. I won’t go into details how Docker Swarm or service discovery works. You can find more information about those subject in the following articles.
- Service Discovery: Zookeeper vs etcd vs Consul
- Docker Clustering Tools Compared: Kubernetes vs Docker Swarm
- Scaling To Infinity with Docker Swarm, Docker Compose and Consul
We’ll skip straight into Docker networking features used within a Swarm cluster.
Continue reading