hurongchengs-mac:centos7-three-node hrc$ vagrant ssh swarm-worker1 [vagrant@swarm-worker1 ~]$ docker swarm join --token SWMTKN-1-2y7di7d8l28op7bdirfaq5tt6iwydimfb0kmy50waikok19cyf-50nnuf6563ua22g4cfnpyq55x 192.168.205.10:2377 Error response from daemon: rpc error: code = Unavailable desc = grpc: the connection is unavailable [vagrant@swarm-worker1 ~]$ telnet 192.168.205.10 2377 Trying 192.168.205.10... telnet: connect to address 192.168.205.10: Connection refused
在worker1中使用telnet测试swarm-manager的2377端口,链接拒绝。关闭了两台机器的防火墙仍有问题。
这是vagrant@swarm-manager上swarm manager节点:
[vagrant@swarm-manager ~]$ docker swarm init --advertise-addr=192.168.205.10 Swarm initialized: current node (f035qwdaq93caxjbo5dwxvjmc) is now a manager. To add a worker to this swarm, run the following command: docker swarm join --token SWMTKN-1-2y7di7d8l28op7bdirfaq5tt6iwydimfb0kmy50waikok19cyf-50nnuf6563ua22g4cfnpyq55x 192.168.205.10:2377 To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions. [vagrant@swarm-manager ~]$ docker node ls ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION f035qwdaq93caxjbo5dwxvjmc * swarm-manager Ready Active Leader 18.03.0-ce
麻烦老师帮忙看看