随笔 - 547  文章 - 213 评论 - 417 阅读 - 107万

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:\WINDOWS\system32>docker-machine create -d hyperv --hyperv-virtual-switch "Virtual Switch Main" manager1
Running pre-create checks...
Creating machine...
(manager1) Copying C:\Users\Spartan.docker\machine\cache\boot2docker.iso to C:\Users\Spartan.docker\machine\machines\manager1\boot2docker.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:\WINDOWS\system32>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:\WINDOWS\system32>docker --version
Docker version 1.12.1, build 23cf638

C:\WINDOWS\system32>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了。

posted on   今夜太冷  阅读(283)  评论(0编辑  收藏  举报
编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
历史上的今天:
2016-09-20 Windows service无法删除怎么办?
2007-09-20 《The C++ Standard Library》第41页 不要误解了这段话
2007-09-20 《The C++ Standard Library》第45页 用const修饰auto_ptr的注意事项
2007-09-20 《The C++ Standard Library》第42页 一段很难理解的话
2007-09-20 《The C++ Standard Library》第39页 make_pair的作用
点击右上角即可分享
微信分享提示