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)”同步“ –