docker Unable to calculate image disk size

在Windows10家庭版上,用户遇到Docker启动卡在Starting状态,重装后报错Unabletocalculateimagedisksize。文章提供了一种解决方案,涉及启用Hyper-V功能。通过命令行启用相关包并避免选择switchtoWindowscontainers选项,问题得以解决。

docker用着用着就启动不了了,一直starting。卸载重装了,再启动报错Unable to calculate image disk size。网上找了些解决办法。

我的是windows10家庭版,docker下载地址:Install Docker Desktop on Windows | Docker Documentation

 

 发现window10找不到这个东西

解决办法:对于windows10家庭版无法勾选Hyper-V的问题的解决_虚難的博客-优快云博客_hyperv虚拟机监控程序无法勾选

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

 不要选择 switch to windows containers选项,不知道怎么的就启动成功了。

评论 7
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值