Docker-swarm >> Cannot connect to the docker engine endpoint
<pre><code>docker version 1.9.1
swarm version 1.0.1
</code></pre>

<p>why on connecting 3 VMs (bridged net) to swarm. "docker info" shows me all nodes </p>

<blockquote>
  <blockquote>
    <p>Status pending. </p>
  </blockquote>
</blockquote>

<p>1 of 3 hosts is <strong>manager</strong> all output is from this host. I don't know where to look for. </p>

<p>On running <code>swarm --debug manage token://XXXXX</code></p>

<p>output >> </p>

<pre><code>*INFO[0000] Listening for HTTP addr=127.0.0.1:2375 proto=tcp

DEBU[0000] Failed to validate pending node: Cannot connect to the docker engine endpoint  Addr=10.32.1.38:2375

DEBU[0000] Failed to validate pending node: Cannot connect to the docker engine endpoint  Addr=10.32.1.4:2375

DEBU[0000] Failed to validate pending node: Cannot connect to the docker engine endpoint  Addr=10.32.1.33:2375
</code></pre>

<p>Then</p>

<pre><code>root@ubuntu:~# ps -ef | grep swarm

root 2158  1391  0 12:28 pts/2 00:00:00 swarm join token://xxxxxxx --addr 10.32.1.4:2375

root 2407  1213  0 13:57 pts/1 00:00:00 swarm manage token://xxxxxxx -H 0.0.0.0:4243

root 2413  1391  0 13:57 pts/2    00:00:00 grep --color=auto swarm
</code></pre>

<p>Then</p>

<pre><code>root@ubuntu:~# swarm list token://xxxxxxxxxxx

10.32.1.4:2375
10.32.1.33:2375
10.32.1.38:2375
</code></pre>

<p>Then</p>

<pre><code>root@ubuntu:~# ps -ef | grep docker

root      2330     1  0 12:52 ?        00:00:00 /usr/bin/docker daemon

root      2421  1391  0 14:10 pts/2    00:00:00 grep --color=auto docker
</code></pre>

<p>heartbeat sorted - runs in background, checked ports, name resolution, pingable from manager.</p>