Closed maany closed 4 years ago
Separate control and data traffic
By default, control traffic relating to swarm management and traffic to and from your applications runs over the same network, though the swarm control traffic is encrypted. You can configure Docker to use separate network interfaces for handling the two different types of traffic. When you initialize or join the swarm, specify --advertise-addr and --datapath-addr separately. You must do this for each node joining the swarm.
Resolution of #128 so far.
This issue is related to overlay network endpoint that docker creates on the nodes when it starts a container. This endpoint needs to be skipped in the DNS.yaml file otherwise containers will fail to attach to the overlay network
Modified the docker network create command to include two subnets
Docker automatically creates a network endpoint otherwise, which can clash with the ip address of a container, resulting in it not attaching to the overlay network https://docs.docker.com/network/overlay/