Tl;dr: Docker swarm containers using overlay network can’t ping eachother
I am trying to create a swarm, which includes my Desktop (Windows with Docker Desktop) and a Ubuntu VM (Swarm manager, on my Desktop PC).
Creating the swarm and joining it works fine. I proceded to create an attachable overlay network, which should span all my nodes using the overlay driver. I have created a random nginx service, using global mode and my overlay network to make the network available on all my nodes.
To test the connectivity I created two ubuntu containers (One on Ubuntu, one on my Windows) and joined them to the network. The Problem is that the containers can’t ping eachother.I have also opened the required ports for swarm (2376, 2377, 7946, 4789) on my Windows and Ubuntu VM.
Docker version for Linux:
Version: 19.03.6
API version: 1.40
Go version: go1.12.16
Docker version for Windows:
Version: 19.03.5
API version: 1.40
Go version: go1.12.12
Do you know how I can make the connection work?