我正在尝试将 EC2 主机添加到我的 Rancher 设置中。我已经看过本教程,但是我想改用 Docker-machine。
为此,我做了以下工作:
MAC:~ user1$ docker-machine create -d amazonec2 --amazonec2-vpc-id vpc-84fd6de0 --amazonec2-region eu-west-1 --amazonec2-ami ami-c5f1beb6 Rancher-node-aws-01Running pre-create checks...
Creating machine...
(Rancher-node-aws-01) Launching instance...
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
注意:AMI ID对应rancheros-v0.7.0-hvm-1。
如您所见,我无法通过 SSH 连接到 RancherOS(SSH 端口在 AWS 上打开)。任何想法为什么会这样?