win11安装docker报错记录

Source

报错一:

Docker Desktop - Unexpected WSL error

An unexpected error occurred while executing a WSL command.

Either shut down WSL down with wsl --shutdown, and/or reboot your machine. You can also try reinstalling WSL and/or Docker Desktop. If the issue persists, collect diagnostics and submit an issue

deploying WSL2 distributions

provisioning docker WSL distros: ensuring main distro is deployed: deploying "docker-desktop": importing WSL distro "找不到指定文件的虚拟磁盘支持提供程序。 \r\nError code: Wsl/Service/RegisterDistro/0xc03a0014\r\n" output="docker-desktop": exit code: 4294967295: running WSL command wsl.exe C:\WINDOWS\System32\wsl.exe --import docker-desktop <HOME>\AppData\Local\Docker\wsl\main C:\Program Files\Docker\Docker\resources\wsl\wsl-bootstrap.tar --version 2: 找不到指定文件的虚拟磁盘支持提供程序。

Error code: Wsl/Service/RegisterDistro/0xc03a0014

: exit status 0xffffffff

checking if isocache exists: CreateFile \\wsl$\docker-desktop-data\isocache\: The network name cannot be found.

以上是因为没有安装wsl,解决办法:

使用命令提示符或者Windows PowerShell执行一下代码获取列表

wsl --list --online

然后根据提示执行 wsl.exe --install 来安装 例如:

wsl.exe --install Ubuntu-20.04

报错二:

执行wsl.exe --install Ubuntu-20.04报错了。

WslRegisterDistribution failed with error: 0xc03a0014

Error: 0xc03a0014 ???????????????????

Press any key to continue...

根据github查询到的解决办法:

1、打开设备管理器

2、点击系统设备

3、找到并开启一下设备:

Microsoft Hyper-V 虚拟化基础结构驱动程序
复合总线枚举器
Microsoft 虚拟驱动器枚举器
UMBus Root Bus Enumerator
NDIS 虚拟网络适配器枚举器
设备重定向器总线枚举器(如果适用)