問題
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.重新啟動即可