简体   繁体   English

Windows 10 Home和WSL上的Docker错误

[英]Error on Docker on Windows 10 Home and WSL

I am running WSL, specifically WLinux Distribution. 我正在运行WSL,特别是WLinux发行版。 I have installed Docker for both Windows and Wlinux as well as the Docker Brigde for WSL. 我已经为Windows和Wlinux安装了Docker,并且为WSL安装了Docker Brigde。

Now I try to start my Docker instance, Docker-Toolbox , but I get this error: 现在,我尝试启动Docker实例Docker-Toolbox ,但是出现以下错误:

➜ docker-machine.exe start
Starting "default"...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.
Error setting up host only network on machine start: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm default --nic2 hostonly --nictype2 82540EM --nicpromisc2 deny --hostonlyadapter2 VirtualBox Host-Only Ethernet Adapter #2 --cableconnected2 on failed:
VBoxManage.exe: error: Code E_FAIL (0x80004005) - Unspecified error (extended info not available)
VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 525 of file VBoxManageModifyVM.cpp

I have tried various solutions, but nothing seems to make my docker run. 我尝试了各种解决方案,但似乎没有任何方法可以使我的docker运行。 Even If I run it from docker's own terminal it still times out and gives an error for not responding. 即使我从docker自己的终端运行它,它仍然会超时并给出不响应的错误。

Does anyone know what is wrong and how to fix it? 有谁知道哪里出了问题以及如何解决? As you can see Docker recognizes that default docker installation is present and tries to start it, but something is wrong... 如您所见,Docker识别出存在默认的Docker安装并尝试启动它,但是出了点问题...

Look at this gist: https://gist.github.com/jwilson8767/00a46f5ca63327d5bfd802f87b702c8d 看看这个要点: https : //gist.github.com/jwilson8767/00a46f5ca63327d5bfd802f87b702c8d

You don't need the first part, since you already have docker installed in the linux subsystem. 您不需要第一部分,因为您已经在Linux子系统中安装了docker。 Start at line 13. You just need to run these commands once. 从第13行开始。您只需要运行一次这些命令。

Also, see my comment ( https://gist.github.com/jwilson8767/00a46f5ca63327d5bfd802f87b702c8d#gistcomment-2587348 ) for two modifications you have to make due to changes in docker-toolbox. 另外,请参阅我的评论( https://gist.github.com/jwilson8767/00a46f5ca63327d5bfd802f87b702c8d#gistcomment-2587348 )关于由于docker-toolbox的更改而必须进行的两项修改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM