基础架构系列篇-系统WIN10安装DOCKER-DESKTOP环境
目录
系统环境版本说明win10(>19版) 支持wls2方式
相关说明.
1. 下载与安装docker-desktop
下载地址 https://hub.docker.com/editions/community/docker-ce-desktop-windows/
安装exe可执行文件
方式1
1. 编写脚本与运行
以下内容保存至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. 临时修改系统版本
打开cmd执行
REG ADD “HKEY_LOCAL_MACHINE\software\Microsoft\Windows NT\CurrentVersion” /v EditionId /T REG_EXPAND_SZ /d Professional /F