【问题标题】:Timeout during docker-machine create with Ubuntu 16.04 on EC2在 EC2 上使用 Ubuntu 16.04 创建 docker-machine 期间超时
【发布时间】:2017-12-16 07:43:53
【问题描述】:

当尝试使用 Ubuntu 16.04 AMI ami-835b4efa 在 EC2 上创建 VM 时,我看到以下内容:

Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded

如果我使用带有 AMI ami-fc4f5e85 的 Ubuntu 14.04 创建 VM,这个问题就会消失。我过去看到过这种情况,并认为这只是侥幸。今天重复发生的次数已经够多了,我认为这里有问题。关于为什么上述问题在 Ubuntu 16.04 上失败的任何想法?我现在可以使用 14.04,但想在不久的将来升级并仍然使用 Docker Machine 来管理我的虚拟机。

我今天下载了适用于 OSX 的最新版本的 Docker Toolbox,以解决可能存在的问题。

【问题讨论】:

    标签: amazon-web-services ubuntu docker amazon-ec2 docker-machine


    【解决方案1】:

    检查这是否类似于issue 2533 where:

    对我有用的是添加 --amazonec2-ami 参数并将其设置为 aws 的 Ubuntu 14.04 LTS 镜像:ami-fce3c696

    由于您使用的是 Ubuntu 16.04,请查看Amazon EC2 AMI Locator 以尝试使用正确 AMI 的类似选项。这可能取决于您所在的地区。

    【讨论】:

    • 我使用 AMI 定位器查找上面列出的 AMI。我正在启动一个需要 HVM 的 p2.xlarge VM。这让我找到了 AMI ami-835b4efa
    【解决方案2】:

    什么版本的 docker 和 docker-machine?机器上的日志中有什么?如果 docker-machine 版本 0.12.0,构建 45c69ad 和 docker 版本 17.06.0-ce 那么它可能是 docker-machine 中的这个问题:https://github.com/docker/machine/issues/4156

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-12-18
      • 2018-02-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多