Docker1.12 Worker not able to join in cluster(Swarm: Pending)
<p>Manager Version <code>Docker version 1.12.0-rc5, build a3f2063</code>, </p>

<p>Worker version <code>Docker version 1.12.0-rc5, build a3f2063</code>.</p>

<p>Created Swarm manger:</p>

<pre><code>docker swarm init --advertise-addr "172.25.30.2:4243"

    Swarm initialized: current node (3kmewyb10p8xj3ke5rpjyw4s8) is now a manager.

    To add a worker to this swarm, run the following command:
        docker swarm join \
        --token SWMTKN-1-5lwzvv7au6hosiqqmdwmcxvmlmhtz4ts04jsg06284fq3posn0-enq26dqnwma38ij48hymtnioq \
        172.25.30.2:4243

    To add a manager to this swarm, run the following command:
        docker swarm join \
        --token SWMTKN-1-5lwzvv7au6hosiqqmdwmcxvmlmhtz4ts04jsg06284fq3posn0-85cwe5pf779qw0knjn6wxdbim \
        172.25.30.2:4243
</code></pre>

<p>Then created worker</p>

<pre><code>docker swarm join --token SWMTKN-1-5lwzvv7au6hosiqqmdwmcxvmlmhtz4ts04jsg06284fq3posn0-enq26dqnwma38ij48hymtnioq 172.25.30.2:4243
    Error response from daemon: Timeout was reached before node was joined. Attempt to join the cluster will continue in the background. Use "docker info" command to see the current swarm status of your node.
</code></pre>

<p>I have checked logs in worker</p>

<pre><code>time="2016-08-01T00:22:47.449844174-07:00" level=warning msg="failed to retrieve remote root CA certificate: rpc error: code = 1 desc = context canceled" 
time="2016-08-01T00:22:47.449962215-07:00" level=warning msg="failed to retrieve remote root CA certificate: rpc error: code = 1 desc = context canceled" 
time="2016-08-01T00:22:47.450025342-07:00" level=warning msg="failed to retrieve remote root CA certificate: rpc error: code = 1 desc = context canceled" 
time="2016-08-01T00:22:47.450081950-07:00" level=warning msg="failed to retrieve remote root CA certificate: rpc error: code = 1 desc = context canceled" 
time="2016-08-01T00:22:47.450142443-07:00" level=warning msg="failed to retrieve remote root CA certificate: rpc error: code = 1 desc = context canceled" 
time="2016-08-01T00:22:47.450202836-07:00" level=error msg="cluster exited with error: rpc error: code = 1 desc = context canceled" 
time="2016-08-01T00:23:31.351868722-07:00" level=error msg="Handler for POST /v1.24/swarm/join returned error: Timeout was reached before node was joined. Attempt to join the cluster will continue in the background. Use \"docker info\" command to see the current swarm status of your node."
</code></pre>

<p>In <code>docker info</code>, I saw "Swarm: Pending"</p>

<p>I did <code>docker swarm update</code> also!. Still, the worker was not able to join the cluster. So, how can I reslove</p>

<p><strong>UPDATE-1</strong></p>

<p>Uninstalled &amp; removed config files and then install docker 1.12 again with version <code>Docker version 1.12.0, build 8eab29e</code>. </p>

<p>Still facing the same problem(Not able to join and "Swarm:Pending" in <code>docker info</code>) with DIFFERENT error in <code>/var/logs/upstat/docker.logs</code></p>

<pre><code>time="2016-08-01T11:22:08.629760770-07:00" level=error msg="Handler for POST /v1.24/swarm/join returned error: Timeout was reached before node was joined. Attempt to join the cluster will continue in the background. Use \"docker info\" command to see the current swarm status of your node."
</code></pre>

<p>Thanks.</p>