解决windows10 安装docker 出现Required Windows feature(s) not enabled : Containers. Docker Desktop will exi

新建一个docker.bat,内容如下:

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 /ALLpause

保存后右键使用管理员权限运行
等待安装完成后重启,或者也可以不用重启,先点击桌面docker启动看看,如果不行重启后在试。

发布了9 篇原创文章 · 获赞 2 · 访问量 6900

猜你喜欢

转载自blog.csdn.net/qq_25760623/article/details/104520317