Unable to add worker nodes to Docker Swarm

I can’t find it now, so maybe it changed, but as far as I know Docker Desktop supports only a single node swarm cluster, because the necessary ports are not available on your actual host. The ports you see in the required port list have to be available on the host, not just inside Docker Desktop’s virtual machine.

You could use socat to forward the necessary ports from the host into Docker Desktop.

https://hub.docker.com/r/alpine/socat

This image description mentions macOS, but I would expect the same requirement on Windows.

1 Like