首页 > 编程知识 正文

win10家庭版安装docker,win10安装docker后无法上网

时间:2023-05-06 05:45:40 阅读:133590 作者:2511

来自https://it next.io/install-docker-on-windows-10-home-d8e 621997 c1d

联想电脑上预装的windows10系统安装了Docker后出现了问题。 然后解决方法如下

由于缺少Hyper-V和Containers,出现了问题。 所以,安装他们。

创建一个名为Hyper-V和Containers安装InstallHyperV.bat的文件,在该文件中包含: pushd ' %~dp0 ' dir/b % systemroot %servicing 添加* hyper-v *.mumhyper-v.txt for/f % % iin (' findstr/I.hyper-v.txt2^ nul ' ) Dodi sm/online/no restatar % % I ' delhyper-v.txtdism/online/enable-feature/feature name 3360 Microsoft-hyper-v-all/limit acccess

4 .正在创建文件InstallContainers.bat

5 .增加以下内容:

pushd ' %~dp0 ' dir/b % systemroot %servicingpackages * containers *.mum containers.txt for/f % % iin (' findstr/I.containers.txt2^ nul ' ) Dodi sm/online/no restart ST % % I ' del containers.txtdism/online/enable-feature/feature name 3360 containers-all/liminers

7 .编辑以下系统版本

运行win密钥r或附件,然后输入regedit。 然后转到 HKEY _ local _ machinesoftwareMicrosoftwindows ntcurrent version

右键单击EditionID,然后单击“修改”

将值更改为Professional,然后单击“确定”。

8.Ok,现在我们有了Hyper-V和Containers。 现在安装Docker吧。

这里有一句话,如果你在第七部分完成后重启电脑,第七部分修改后的专业版又要回去,再重复第七步。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。