# Install Docker on Windows 1. 安裝[Docker Desktop](https://docs.docker.com/docker-for-windows/install/) 2. 安裝Windows Terminal(microsoft store)(或者使用cmd也可以) 3. 若出現WLS升級,[下載升級成WSL2](https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi) 4. 使用家用版win10的話會沒有Hyper-V,需另外安裝 ``` 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 ``` 存成Hyper-V.cmd並用管理員權限執行 全部裝完後打開Windows Terminal,輸入 ``` docker --version ``` 正常的話就能看到docker的版本了 ###### tags: `Docker`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up