title: Cannot setup multi-host Docker overlay network with etcd
body: <p>I am trying to connect two Docker hosts with an overlay network and am using <code>etcd</code> as a KV-store. etcd is running directly on the first host (not in a container). I finally managed to connect the Docker daemon of the first host to etcd but cannot manage to establish a connection the Docker daemon on the second host.</p>
  
  <p>I downloaded etcd from  the <a href="https://github.com/coreos/etcd/releases/" rel="nofollow">Github releases</a> page and followed the instructions under the "Linux" section.
  After starting etcd, it is listening to the following ports:</p>
  
  <pre><code>etcdmain: listening for peers on http://localhost:2380
  etcdmain: listening for peers on http://localhost:7001
  etcdmain: listening for client requests on http://localhost:2379
  etcdmain: listening for client requests on http://localhost:4001
  </code></pre>
  
  <p>And I started the Docker daemon on the first host (on which etcd is running as well) like this:</p>
  
  <pre><code>docker daemon --cluster-advertise eth1:2379 --cluster-store etcd://127.0.0.1:2379
  </code></pre>
  
  <p>After that, I could also create an overlay network with:</p>
  
  <pre><code>docker network create -d overlay &lt;network name&gt;
  </code></pre>
  
  <p>But I can't figure out how to start the daemon on the second host. No matter which values I tried for <code>--cluster-advertise</code> and <code>--cluster-store</code>, I keep getting the following error message:</p>
  
  <pre><code>discovery error: client: etcd cluster is unavailable or misconfigured
  </code></pre>
  
  <p>Both my hosts are using the <code>eth1</code> interface. The IP of host1 is <code>10.10.10.10</code> and the IP of host2 is <code>10.10.10.20</code>. I already ran <code>iperf</code> to make sure they can connect to each other.</p>
  
  <p>Any ideas?</p>