sierra 下用 docker-machine create -d generic....创建失败……google 了半天似乎没有人向我一样卡在这里

2016-12-02 14:58:50 +08:00
 lcdtyph
$ docker-machine -D create -d generic --generic-ip-address "192.168.99.101" --generic-ssh-key ~/.ssh/id_rsa vm
Docker Machine Version: 0.8.2, build e18a919
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver generic
Plugin server listening at address 127.0.0.1:51213
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver generic
Plugin server listening at address 127.0.0.1:51217
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(vm) Calling .GetMachineName
(vm) Calling .DriverName
(vm) Calling .GetCreateFlags
(vm) Calling .SetConfigFromFlags
Running pre-create checks...
(vm) Calling .PreCreateCheck
(vm) Calling .GetConfigRaw
Creating machine...
(vm) Calling .Create
(vm) Importing SSH key...
(vm) DBG | IP: 192.168.99.101
(vm) Calling .GetConfigRaw
(vm) Calling .DriverName
(vm) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(vm) Calling .GetState
(vm) Calling .GetState
(vm) Calling .GetState
(vm) Calling .GetState
(vm) Calling .GetState
(vm) Calling .GetState
(vm) Calling .GetState
(vm) Calling .GetState
(vm) Calling .GetState
(vm) Calling .GetState
(vm) Calling .GetState
(vm) Calling .GetState
.....( 后面全是这个 )
Error creating machine: Error waiting for machine to be running: Maximum number of retries (60) exceeded
notifying bugsnag: [Error creating machine: Error waiting for machine to be running: Maximum number of retries (60) exceeded]

求救, docker 和 docker-machine 都是通过 brew 安装的最新版,如果把 driver 改成 virtualbox 是可以正常创建 machine 的……
2297 次点击
所在节点    macOS
8 条回复
ppwangs
2016-12-02 15:03:42 +08:00
过时了,去官网安装 docker.app 吧,安装完直接用
lcdtyph
2016-12-02 15:07:12 +08:00
@ppwangs 来这最后挣扎一下,不行就去官网安装了……
ppwangs
2016-12-02 15:14:53 +08:00
@lcdtyph 我去,我刚刚是了下,也还是不行,版本和你一样。第二次执行提示存在。
lcdtyph
2016-12-02 15:27:13 +08:00
@ppwangs 哎……新手感觉心好累啊……居然 google 不到,难道是我搜索的姿势有问题?……
第二次提示存在要用 docker-machine rm xxx 把刚才建立的那个移除= =
wx3571
2016-12-02 15:51:51 +08:00
同不行,然后我把 docker 的环境删干净,然后装新的就可以了
ppwangs
2016-12-02 16:38:51 +08:00
@lcdtyphh
看文档 generic 这个驱动是基于现有的 machine 再创建一个。
你 docker-machine ls 有东西吗?
lcdtyph
2016-12-02 18:19:38 +08:00
@ppwangs 有一个 vbox 的 machine ……
不过这倒是启示了我……我把 generic-ip-address 改成已经存在的台机器的 ip 就好了(╯‵□′)╯︵┻━┻
感谢!看来还是要仔细看文档……
ppwangs
2016-12-02 19:17:59 +08:00
@lcdtyph 是啊,我也发现了,但是这样 Ip 不就一样了么,不知道是不是我看得不对……
最近正好也在看这块

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/324828

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX