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了。