## 1. 開啟Hyper-V
> 新建`hyperv.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. 偽裝成win10專業版
```
REG ADD "HKEY_LOCAL_MACHINE\software\Microsoft\Windows NT\CurrentVersion" /v EditionId /T REG_EXPAND_SZ /d Professional /F
```
## 3. 解決“Containers Windows Feature is not available”,需要安裝容器
```
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
```
## 4. 下載Docker Desktop
> 地址:[https://store.docker.com/editions/community/docker-ce-desktop-windows](https://store.docker.com/editions/community/docker-ce-desktop-windows)
> 點擊“Get Docker”
> 安裝過程中,切勿選擇第3項的容器安裝
## 5. 更換鏡像源地址
> 鏡像源地址:https://registry.docker-cn.com
> 點擊Apply后會重啟Docker
