报错“Error response from daemon: rpc error: code = Unavailable desc = connection error: desc = "transport: ”

 

当我们swarm集群加入节点时,会报错“Error response from daemon: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 192.168.0.103:2377: connect: no route to host"”

我们只需要关闭防火墙!!!

 

1、查看状态:systemctl status firewalld、

 

 

 

 

2、关闭: systemctl stop firewalld(只执行这个,重启后不行,还必须执行systemclt disable firewalld)

 

 

 

 

3、之后我们就会发现加入节点成功!!!

 

 

posted @ 2022-04-24 10:27  屯子里唯一的架构师  阅读(3039)  评论(0编辑  收藏  举报