我有一个远程Ubuntu VM(16.04),我安装了Docker(v1.13.1)。
$ sudo ufw allow 2375 && sudo ufw allow 2376
告诉我该服务处于活动状态(正在运行)。docker
打开了端口2375和2376。docker ALL=(ALL) NOPASSWD: ALL
的sudo用户,并在/etc/sudoers
内添加了行~/.ssh/id_rsa.pub
。/home/docker/.ssh/authorized_keys
(本地)的内容复制到$ docker-machine create -d generic --generic-ip-address XXX.XXX.XXX.XXX --generic-ssh-user docker myhost
(远程)。但现在,当我尝试执行Waiting for SSH to be available...
Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded
(在我的本地机器上)时,我得到了
$ docker-machine ls
使用Unable to query docker version: Get https://XXX.XXX.XXX.XXX:2376/v1.15/version: dial tcp XXX.XXX.XXX.XXX:2376: connectex: No connection could be made because the target machine actively refused it.
我的主机已列出,但出现错误消息:
/
我做错了什么?