我试图用PC和笔记本电脑创建一个docker群,这些PC和笔记本电脑位于同一网络中,但机器不同(没有VM)。
在PC上创建群管理器就可以了。现在,当我尝试将笔记本电脑加入集群时,出现以下异常:
Error response from daemon: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp 192.168.65.3:2377: connect: connection refused"
使用--advertise-addr <my-pcs-network-ip>
创建群集时,在连接节点时出现以下错误:
Error response from daemon: Timeout was reached before node joined. The attempt to join the swarm will continue in the background. Use the "docker info" command to see the current swarm status of your node.
奇怪的是,当我创建一个docker-machine并在其中托管群集时,可以从PC和笔记本电脑连接到它。但是将群再次托管在PC上后,我再也无法从docker-machine或膝上型计算机上加入它了。
我已经读过一些有关nat-switch或在某事物之间添加路由(?)的信息,但是所有这些答案和文章都有些含糊。
非常感谢您的帮助。
P.S。我不能只切换到Linux:)