docker swarm throwing an error "swarm already part of swarm" when I am joining the new node to the existing node
I am running the docker swarm in my local machine and trying to init the swarm and getting executed very well but when i am trying to add the new worker or node to the existing manager node then it is throwing an error like swarm already part of the node you have to leave the node. $docker swarm init Swarm initialized: current node (fn405d6jtk8mxbpvdrftr0np1) is now a manager.
To add a worker to this swarm, run the following command:
docker swarm join --token SWMTKN-1-5tyw8ux789wpa7yyt75qbilb669tiw53pxriyxu48niznpmaka-7u63l4hom3h60myvtyw8p1mcj 192.168.2.219:2377
To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
=>And again am using above token as a worker and join then i gotta error like this..
$ docker swarm join --token SWMTKN-1-5tyw8ux789wpa7yyt75qbilb669tiw53pxriyxu48niznpmaka-7u63l4hom3h60myvtyw8p1mcj 192.168.2.219:2377
Error response from daemon: This node is already part of a swarm. Use "docker swarm leave" to leave this swarm and join another one.
docker swarm join
commands on the same node (the manager) or on different nodes?