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选项,不知道怎么的就启动成功了。
在Windows10家庭版上,用户遇到Docker启动卡在Starting状态,重装后报错Unabletocalculateimagedisksize。文章提供了一种解决方案,涉及启用Hyper-V功能。通过命令行启用相关包并避免选择switchtoWindowscontainers选项,问题得以解决。
3574





