Win10家庭版Docker Desktop Installer 方式安装Docker遇到的问题及解决方法(转)

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

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

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

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

Hype-V

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

Installation failed:Containers not available

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

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

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

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

docker version

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

虚拟化

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

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

docker destop

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值