V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
lcdtyph
V2EX  ›  macOS

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

  •  
  •   lcdtyph · 2016-12-02 14:58:50 +08:00 · 2263 次点击
    这是一个创建于 2701 天前的主题,其中的信息可能已经有所发展或是发生改变。
    $ 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 的……
    8 条回复    2016-12-02 19:17:59 +08:00
    ppwangs
        1
    ppwangs  
       2016-12-02 15:03:42 +08:00
    过时了,去官网安装 docker.app 吧,安装完直接用
    lcdtyph
        2
    lcdtyph  
    OP
       2016-12-02 15:07:12 +08:00
    @ppwangs 来这最后挣扎一下,不行就去官网安装了……
    ppwangs
        3
    ppwangs  
       2016-12-02 15:14:53 +08:00
    @lcdtyph 我去,我刚刚是了下,也还是不行,版本和你一样。第二次执行提示存在。
    lcdtyph
        4
    lcdtyph  
    OP
       2016-12-02 15:27:13 +08:00
    @ppwangs 哎……新手感觉心好累啊……居然 google 不到,难道是我搜索的姿势有问题?……
    第二次提示存在要用 docker-machine rm xxx 把刚才建立的那个移除= =
    wx3571
        5
    wx3571  
       2016-12-02 15:51:51 +08:00
    同不行,然后我把 docker 的环境删干净,然后装新的就可以了
    ppwangs
        6
    ppwangs  
       2016-12-02 16:38:51 +08:00
    @lcdtyphh
    看文档 generic 这个驱动是基于现有的 machine 再创建一个。
    你 docker-machine ls 有东西吗?
    lcdtyph
        7
    lcdtyph  
    OP
       2016-12-02 18:19:38 +08:00
    @ppwangs 有一个 vbox 的 machine ……
    不过这倒是启示了我……我把 generic-ip-address 改成已经存在的台机器的 ip 就好了(╯‵□′)╯︵┻━┻
    感谢!看来还是要仔细看文档……
    ppwangs
        8
    ppwangs  
       2016-12-02 19:17:59 +08:00
    @lcdtyph 是啊,我也发现了,但是这样 Ip 不就一样了么,不知道是不是我看得不对……
    最近正好也在看这块
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5244 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 09:17 · PVG 17:17 · LAX 02:17 · JFK 05:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.