Docker-云 "own node" 未连接(ubuntu 服务器)

Docker-Cloud "own node" doesn't connect (ubuntu server)

我已尝试将我的 vps 服务器与 docker 云代理连接,但无法连接 运行ning。

我已经尝试了多个 Ubuntu-服务器版本(14.05、15.05 和 16.xx) docker 已安装,cloud.docker 脚本已执行。

启动时,我在 docker-cloud Dasboard 上得到 "deploying",但它总是失败。这是日志输出:

Bringing your node to Docker Cloud...
Agent contacted! Checking whether docker has started in node...
Waiting for docker port to be open...
Docker port is open!
Waiting for docker server to be up...
[...]
Waiting for docker server to be up...
Instance has been removed from Docker Cloud
PLEASE NOTE: we have not shut down the underlying host as it was not created by Docker Cloud
ERROR: Unable to connect to the Docker daemon in 42xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.node.dockerapp.io. Please try to restart the Docker Cloud agent and contact support if the problem persists.

Reallocating containers in other nodes...
Reallocation done!

我打开了端口:

TCP 6783
UDP 6783
TCP 2375

我什至尝试过 运行 它禁用了防火墙。

我发现了什么:

好的,我在 Ubuntu Server 16.04

上运行了

我首先启用了 docker 其余 API:

  • 1) 打开lib/systemd/system/docker.service
  • 2) 将以 ExecStart 开头的行编辑为 ExecStart=/usr/bin/docker daemon -H fd:// -H tcp://0.0.0.0:2375
  • 3) 重新加载守护进程:systemctl daemon-reload
  • 4)重启docker服务:服务docker重启
  • 5) 执行dockercloud-agend脚本。

现在应该可以了。