zoukankan      html  css  js  c++  java
  • Docker-machine创建虚机时停在虚机启动的提示上,并且创建的虚机显示Ip Not found

    Docker-machine创建虚机时停在虚机启动的提示上,并且创建的虚机用docker-machine ls 列出来的时候显示Ip Not found, 是什么原因那?

    【答案】

    看这个帖子:

    https://github.com/docker/machine/issues/3832

    拷贝如下:

    I am having trouble getting my docker-machine to create and run a new box. I have followed the directions on installing docker and manually setting up a switch with hyperv using these docs :
    https://docs.docker.com/machine/drivers/hyper-v/

    C:WINDOWSsystem32>docker-machine create -d hyperv --hyperv-virtual-switch "Virtual Switch Main" manager1
    Running pre-create checks...
    Creating machine...
    (manager1) Copying C:UsersSpartan.dockermachinecacheoot2docker.iso to C:UsersSpartan.dockermachinemachinesmanager1oot2docker.iso...
    (manager1) Creating SSH key...
    (manager1) Creating VM...
    (manager1) Using switch "Virtual Switch Main"
    (manager1) Creating VHD
    (manager1) Starting VM...
    (manager1) Waiting for host to start...

    And it hangs there forever.... :( If any of you have suggestions on how to get it working from here that would be amazing!

    When I run docker-machine ls
    C:WINDOWSsystem32>docker-machine ls
    NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
    manager1 * hyperv Running Unknown IP not found
    tensor * hyperv Running Unknown IP not found

    C:WINDOWSsystem32>docker --version
    Docker version 1.12.1, build 23cf638

    C:WINDOWSsystem32>docker-machine --version
    docker-machine version 0.8.1, build 
    41b3b25
    run as administrator too

    I have the same problem and found out I choose a wrong network card creating virtual switch. I am using WLAN, everything works fine after I change external network to Wireless card.

     

     

    我的问题也是一样,开始的时候创建的Virtual switch选择了无线网,改成内网后停住的虚机界面自动继续创建直到成功,并且用docker-machine ls列出的虚机信息也有ip了。

  • 相关阅读:
    一些你不知道的js特性【一】
    webpack打包优化实践
    prerender-spa-plugin预渲染踩坑
    前端学习中你必须了解的几张图
    fis3打包中的一些注意事项
    js中的运算符优先级
    Vivado安装教程
    ISE14.7使用教程(一个完整工程的建立)
    如何高效的编写Verilog HDL——进阶版
    Vivado 2017封装自定义IP Core
  • 原文地址:https://www.cnblogs.com/time-is-life/p/7561985.html
Copyright © 2011-2022 走看看