win7,docker安裝后,創建虛擬機分配不了ip錯誤 err: exit status 255


問題

win7裝docker真麻煩,不如家里的win10爽。另外明明這是個很簡單的操作,但是國內的解決方法有點落后,所以我寫了個傻瓜式的。

有興趣的可以直接看issue https://github.com/docker/toolbox/issues/153

主要思路是khojlo說的方法

    
Deleted all docker VMs (default, my-default etc.)
    
Removed all "Host-only Networks" from VirtualBox -> Preferences -> Network
    
Uninstalled VirtualBox
   
Downloaded the latest VirtualBox installation file i.e. "VirtualBox-5.0.20-106931-Win.exe"
    
Installed VirtualBox by running following command from Windows terminal:
C:\Users\Home\Downloads>VirtualBox-5.0.20-106931-Win.exe -msiparams NETWORKTYPE=NDIS5
    
Completed the VirtualBox installation by following the prompts
    
Ran Docker Quickstart Terminal which finally created and started the "default" VM successfully.

 

 

解決方案

ps.刪除本地的虛擬機和docker的我省略了,程序員連如何干凈刪除都不會,我也沒辦法,,,

 

1.打開虛擬機

2.點擊設置

3.刪除原有網卡,並新建一個網卡

4.管理-主機網絡管理器

5.重新啟動即可

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM