2016-01-07 62 views
2

我是碼頭工的新手。 今天上午,我剛剛下載和安裝搬運工1.9.1到我的電腦(操作系統:Windows)無法啓動Docker 1.9.1

後安裝它,我跑「泊塢快速入門終端」,但失敗 控制檯保持打印這樣的:

Machine default already exists in VirtualBox. 
Starting machine default... 
(default) Starting VM... 
Machine "default" was started. 
Started machines may have new IP addresses. You may need to re-run the `docker-m 
achine env` command. 
Regenerate TLS machine certs? Warning: this is irreversible. (y/n): Regeneratin 
g TLS certificates 
Detecting the provisioner... 
Copying certs to the local machine directory... 
Copying certs to the remote machine... 
Setting Docker configuration on the remote daemon... 
Setting environment variables for machine default... 
Looks like something went wrong... Press any key to continue... 

我試圖刪除虛擬機並重新創建它,但問題還是發生了

Creating Machine default... 
Running pre-create checks... 
Creating machine... 
(default) Copying C:\Users\mcthanh\.docker\machine\cache\boot2docker.iso to C:\U 
sers\mcthanh\.docker\machine\machines\default\boot2docker.iso... 
(default) Creating VirtualBox VM... 
(default) Creating SSH key... 
(default) Starting VM... 
Waiting for machine to be running, this may take a few minutes... 
Machine is running, waiting for SSH to be available... 
Detecting operating system of created instance... 
Detecting the provisioner... 
Provisioning with boot2docker... 
Copying certs to the local machine directory... 
Copying certs to the remote machine... 
Setting Docker configuration on the remote daemon... 
Checking connection to Docker... 
Docker is up and running! 
To see how to connect Docker to this machine, run: C:\Program Files\Docker Toolb 
ox\docker-machine.exe env default 
Setting environment variables for machine default... 
Looks like something went wrong... Press any key to continue... 

你對此有任何EXP? 非常感謝您的幫助!

回答

1

在休眠/喚醒週期後,Windows將主機專用網絡檢測爲「重複」並更改其IP。之後,碼頭機(或快速入門終端)不再工作。

這可能是由VirtualBox bug(來自5年前)造成的:所以似乎很快就沒有從VirtualBox那裏得到修復。這可能是一個Windows錯誤。

這應該是一個有效的解決方法:

  1. 打開VirtualBox的
  2. 轉到文件 - >首選項 - >網絡 - >僅主機網絡
  3. 泊塢窗工具箱可能創建第二host-only網絡,可能被命名爲「VirtualBox主機以太網適配器#2」,雙擊
  4. 將「IPv4地址」從192.168.99.1更改爲類似192.168.99.2的東西(您可能必須每隔一段時間增加/減少IP時間)。但是知識產權真正改變很重要。
  5. 點擊確定。如果IP更改(它應該已更改),系統會提示您輸入「Windows Administrator OK」(或者命名爲「Windows Administrator」)。

之後,碼頭機和快速啓動終端應該工作。

+0

解決VM的docker問題的唯一正確答案!謝謝! :-D – Suriyaa

0

有時我們的虛擬化系統在我們的系統中被禁用,請確保 虛擬化已啓用或未啓用?

按照所給的步驟來檢查是否u必須支持虛擬化或不

Open Task manager 
Click on performance 
Click on CPU 
Check whether virtualization is enabled or not 

如果被禁用,然後去BIOS設置並啓用它。