Windows10 家庭版安裝 Docker Desktop

開啓 Hyper-V

開啓後會有提示讓重啓電腦,重啓就 OKdocker

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

:: 運行
open-hyper-v.cmd

臨時修改註冊表,設置爲專業版(重啓後會還原)

REG ADD "HKEY_LOCAL_MACHINE\software\Microsoft\Windows NT\CurrentVersion" /v EditionId /T REG_EXPAND_SZ /d Professional /F

安裝 Docker

如今就能夠安裝了bash

參考

Windows10 家庭版安裝 Docker Desktop(非 Docker Toolbox) - 簡書rest

相關文章
相關標籤/搜索