Docker Community Forums

Share and learn in the Docker community.

Docker swarm with two windows PCs not working

I am trying to create a docker swarm with my PC and my laptop, which are in the same network but different machines (no VMs).

Creating a swarm manager on my PC works just fine. When I now try to join my laptop to the swarm I get the following exception: Error response from daemon: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp 192.168.65.3:2377: connect: connection refused"

Using --advertise-addr <my-pcs-network-ip> to create the swarm gives me the following error while connecting my node: Error response from daemon: Timeout was reached before node joined. The attempt to join the swarm will continue in the background. Use the "docker info" command to see the current swarm status of your node.

The weired part is when I create a docker-machine and host the swarm there I can connect to it from my PC and laptop. But hosting the swarm on the PC again makes it again impossible for me to join it from the docker-machine or the laptop.

I have read something about nat-switches or adding routes between something (?) but all these answers and articles were kinda vague.

Any help is greatly appreciated.

For anyone reading this: It looks like it’s just not possible. Use docker-machine to create a docker-machine on your windows host and use this as a manager. Then you can join the windows workers