docker用着用着就启动不了了,一直starting。卸载重装了,再启动报错Unable to calculate image disk size。网上找了些解决办法。
我的是windows10家庭版,docker下载地址:Install Docker Desktop on Windows | Docker Documentation
发现window10找不到这个东西
解决办法:对于windows10家庭版无法勾选Hyper-V的问题的解决_虚難的博客-CSDN博客_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选项,不知道怎么的就启动成功了。