I created an docker leader node on windows docker-desktop and then created a token for worker ., but when I’m trying to create worker node over Linux VM , there is an error and not able to add worker node , please help me resolve this.
Swarm needs some ports open on the nodes so they can communicate. The workers has to communicate with the manager, but Docker Desktop runs everything ina virtual machine so only those ports will be open that you forward to a container inside Docker Desktop. You could try to make those ports available by using socat. You can find examples here:
https://hub.docker.com/r/alpine/socat
But Docker Desktop was not designed to use it in a cluster, it is mainly for development on a single node