1.下載windows版本的docker 在官網上https://www.docker.com/
2. docker安裝好之后出現(xiàn)了閃退或者一直在docker stoping
3.從控制面板中--程序--啟動或關閉windows功能中查看是否有Hyper-V這個選項,如果沒有在桌面新建一個hpv.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
4.重啟電腦,重啟docker即可