Docker Community Forums

Share and learn in the Docker community.

Weave can't applied successfully via two hosts


(Xuesonbw) #1

Hi all:
OS:window7
virtualization tool: virtualbox
virtual hypervisor: centos7
linux core as below
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

two host ip
192.168.100.101
192.168.100.102

the steps:
curl -L git.io/weave -o /usr/local/bin/weave
chmod a+x /usr/local/bin/weave
[root@localhost ~]# weave launch 192.168.100.102
WARNING: existing iptables rule

'-A FORWARD -j REJECT --reject-with icmp-host-prohibited'

will block name resolution via weaveDNS - please reconfigure your firewall.
cannot locate running docker daemon
Warning: unable to detect proxy TLS configuration. To enable TLS, launch the proxy with ‘weave launch’ and supply TLS options. To suppress this warning, supply the ‘–no-detect-tls’ option.
3227932d5be77917c4e0b780cafe1171287c1029637f2360ece580fe6239cb4f

[root@localhost ~]# weave status

    Version: 2.1.1 (failed to check latest version - see logs; next check at 2017/11/28 19:18:07)

    Service: router
   Protocol: weave 1..2
       Name: 06:e0:c4:68:0c:ae(localhost.localdomain)
 Encryption: disabled

PeerDiscovery: enabled
Targets: 1
Connections: 1 (1 failed)
Peers: 1
TrustedSubnets: none

    Service: ipam
     Status: ready
      Range: 10.32.0.0/12

DefaultSubnet: 10.32.0.0/12

    Service: dns
     Domain: weave.local.
   Upstream: 135.251.4.190, 135.251.38.218, 192.168.1.1
        TTL: 1
    Entries: 0

    Service: proxy
    Address: unix:///var/run/weave/weave.sock

    Service: plugin (legacy)
 DriverName: weave

[root@localhost ~]# weave version
weave script 2.1.1
weave 2.1.1

As above , the Connections: 1 (1 failed) , the docker run on these two hosts can’t ping each other.
And when I type “weave version” , it only showed “weave script 2.1.1” and “weave 2.1.1” , not like other ariticles said it will show “weaveexec” and “plugin” . Is this the difference between versions or a mistake I have made ?

Please help , thank you very much!