admin管理员组文章数量:1565369
Windows 系统安装Docker时需要先 “启动或关闭Windows功能中开启” Hyper-V功能,我的Windows10系统中没有这个却选项,开启了 “适用于Linux的Windows子系统功能” Docker也可以安装,但是不能正常的启动,相当于废物。
报错提示1:
Docker | installation failed: one prerequisite is not fullfilled
报错提示2:
Windows containers are not supported by your windows version check documenta
Docker 支持 WIN10 的专业版,如果使用家庭版则会造成系统版本冲突了!
解决办法:
伪装成专业版系统,通过 Docker 的系统检测。
1、新建Hyper-V.cmd文件,并以管理员身份运行
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL
2、新建containers.bat文件,并以管理员身份运行
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*containers*.mum >containers.txt
for /f %%i in ('findstr /i . containers.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del containers.txt
Dism /online /enable-feature /featurename:Containers -All /LimitAccess /ALL
pause
3、修改注册表
REG ADD "HKEY_LOCAL_MACHINE\software\Microsoft\Windows NT\CurrentVersion" /v EditionId /T REG_EXPAND_SZ /d Professional /F
过程中需要从起两次系统。
重新安装 Docker
启动Docker
好像并不稳定,程序会出现自动退出的情况
版权声明:本文标题:Docker Windows桌面版安装 Windows家庭版伪装成专业版系统 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1727534879a1119828.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论