Manager版本Docker version 1.12.0-rc5, build a3f2063
,Docker1.12工人無法在集羣加入(羣:待定)
工人版本Docker version 1.12.0-rc5, build a3f2063
。
創建羣經理:在工人
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
然後創建的工作
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.
我已經檢查日誌
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."
在docker info
,我看到了 「羣:待定」
我也做過docker swarm update
也!但是,該工作人員無法加入羣集。所以,我怎麼能reslove
UPDATE-1
卸載&刪除配置文件,然後安裝搬運工1.12再次Docker version 1.12.0, build 8eab29e
版本。
仍然面臨着同樣的問題(無法加入和「羣:待定」在docker info
)具有不同的錯誤/var/logs/upstat/docker.logs
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."
感謝。
顯然,我有同樣的問題。對我來說,解決方案是確定工人的日期。要清楚的是,工人的日期不對(舊日期)。我讓工作人員使用NTP服務器,並解決了問題(我猜)。我不是把它寫成解決方案,因爲我不完全理解發生了什麼。我只知道它對我有用。 –
有同樣的問題。可能是因爲生成的令牌(加入羣集)取決於時間。 – lvthillo
我有同樣的問題。 @ IntiGonzalez-Herrera提到的日期/時間是解決方案。由於某些防火牆問題,我無法設置NTP服務器,但想象一下,我至少可以使用NTP將我所有的工作人員同步到管理員。我用於測試swarm的一個快速解決方案是將時間與date --set =「$(ssh user @ server date)」同步「 –