win10 15063是什么(win1015063是什么版本)

如果你在 Winows 10 家庭版里安装 Docker,你会看到类似如下信息:

Installation Failed: one prerequisite is not fulfilled
Docker Desktop requires Windows 10 Pro or Enterprise version 15063 to run.

提示你需要升级到 Windows 10 Pro 才可以继续安装。

不能安装的一个原因是家庭版没有 Hyper-V 和 Containers 这两个功能。

安装 Hyper-V 和 Containers桌面创建一个文件 InstallHyperV.bat添加内容如下:

pushd "%~dp0"dir /b %SystemRoot%\servicing\Packages\*containers*.mum >containers.txtfor /f %%i in ('findstr /i . containers.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"del containers.txtdism /online /enable-feature /featurename:Containers -All /LimitAccess /ALLpause

3. 以管理身份运行 InstallHyperV.bat

4. 创建一个文件 InstallContainers.bat

5. 添加如下内容:

pushd "%~dp0"dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txtfor /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"del hyper-v.txtdism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALLpause

6. 以管理身份运行 InstallHyperV.bat

7. 重启你的电脑

Hyper-V 和 Containers 两个已经安装完成,接下来就是更改系统版本名称,让 Docker 以为系统是专业版。

注册表中更改 Windows 版本快捷键 win + R 打开运行并输入 regedit注册编辑器里找到路径:\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion在 EditionID 右击 修改值改为:Professional点击确定

如果嫌更改注册表麻烦,可以直接管理员权限运行 如下CMD命令:REG ADD "HKEY_LOCAL_MACHINE\software\Microsoft\Windows NT\CurrentVersion" /v EditionId /T REG_EXPAND_SZ /d Professional /F

安装 Docker

注意:如果重启了电脑,EditionID 会被重置,所有安装之前要重新设置。

现在就可以正在安装了。