Docker Windows桌面版安装 Windows家庭版伪装成专业版系统

tech2025-12-16  1

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

好像并不稳定,程序会出现自动退出的情况

最新回复(0)