Docker Community Forums

Share and learn in the Docker community.

Weave can't applied successfully via two hosts

(Xuesonbw) #1

Hi all:
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

the steps:
curl -L -o /usr/local/bin/weave
chmod a+x /usr/local/bin/weave
[root@localhost ~]# weave launch
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.

[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


    Service: dns
     Domain: weave.local.
        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!