我在公司的数据中心安装了Docker-engine,它运行在Linux虚拟机上。然后我在Windows机器上安装了Docker-machine。现在我想通过我的Windows机器来管理这个Docker-engine,因此我需要添加这个主机。为此,我执行了以下命令:
docker-machine create -d generic --generic-ip-address 10.51.227.5 --generic-ssh-port 22 --generic-ssh-user root compute
但是我等了几分钟后出现了以下错误。
Running pre-create checks...
Creating machine...
(compute) No SSH key specified. Connecting to this machine now and in the future will require the ssh agent to contain the appropriate key.
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
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
我不知道我做错了什么。
--generic-ssh-key ~/.ssh/custom_rsa
。 - Jared Mackey