当前位置: 首页> 娱乐> 影视 > win11 更新后导致 docker 启动报虚拟机错误解决办法

win11 更新后导致 docker 启动报虚拟机错误解决办法

时间:2025/8/10 13:09:09来源:https://blog.csdn.net/weixin_39786582/article/details/141603016 浏览次数:0次

1. 确保勾选了 hyper-v 和 适用于 Linux 的 windows 子系统

在这里插入图片描述

2. 管理员运行 powershell, 挨个执行以下4个命令后,重启电脑

# 重新启用 WSL 和 VirtualMachine 功能:DISM /online /enable-feature /featurename:VirtualMachinePlatform /norestartDISM /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart#重新启用 Hyper-V 功能:dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /Allbcdedit /set hypervisorlaunchtype auto

3. 重启后,顺利打开 docker 。

注:原报错如下:

Previously there was no errors; Now - error dialog is shown when starting the Docker Desktop:provisioning docker WSL distros: ensuring main distro is deployed: checking if main distro is up to date: checking main distro bootstrap version: getting main distro bootstrap version: exit code: 4294967295: running WSL command wsl.exe C:\WINDOWS\System32\wsl.exe -d docker-desktop -u root -e wsl-bootstrap version: WSL2 is not supported with your current machine configuration.
Please enable the "Virtual Machine Platform" optional component and ensure virtualization is enabled in the BIOS.
Enable "Virtual Machine Platform" by running: wsl.exe --install --no-distribution
For information please visit https://aka.ms/enablevirtualization
Error code: Wsl/Service/CreateInstance/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED
: exit status 0xffffffff
checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found.
关键字:win11 更新后导致 docker 启动报虚拟机错误解决办法

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: