admin管理员组

文章数量:1577827

一、Docker Desktop for Windows获取官网地址

二、Docker win10只支持专业版,家庭版安装会报Installation failed:one pre-requisite is not fullfilled错误,解决方法如下:

新建hyperv.cmd,编辑内容如下,以管理员身份运行,遇到下载进度卡着不动可按回车继续。。执行完后会提示重启电脑:Y。

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

三、启用或关闭Windows功能:勾选Hyper-V

四、提示Installation failed:Containers Windows Feature is not available

解决方法:新建containers.cmd,编辑内容如下,以管理员身份运行,执行完后会提示重启电脑:Y。

pushd "%~dp0"
dir /b %SystemRoot%servicingPackages*containers*.mum >containers.txt
for /f %%i in ('findstr /i . containers.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%servicingPackages%%i"
del containers.txt
Dism /online /enable-feature /featurename:Containers -All /LimitAccess /ALL
pause

-----安装成功-----

五、cmd命令行执行docker version查看docker版本

六、启动Docker又报Hardware assisted virtualization and data execution protection must be enabled in the BIOS错误,解决方法:打开任务管理器-性能查看虚拟化是否已开启。

若未开启虚拟化参考解决方法:BIOS开启虚拟化

------到此docker desktop终于启动起来啦-----

本文标签: 解决方法家庭版方式Dockerinstaller