This section explains the basics of creating a multi-host network. The Docker Engine supports multi-host networking through the overlay network driver. Overlay drivers need the following pre-requisites to work:
3.16 Linux kernel or higher
Access to a key-value store
Docker supports the following key-value stores: Consul, etcd, and ZooKeeper
A cluster of hosts connected to the key-value store
Docker Engine daemon on each host in the cluster
This example uses Docker Machine and Docker Swarm to create the multi-network host.
Docker Machine is used to create the key-value store server and the cluster. The cluster created is a Docker Swarm cluster.
The following diagram explains how three VMs are set up using Docker Machine: