最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

docker - Starting DockerDesktop on Windows 10 failed with WSL error - Stack Overflow

programmeradmin3浏览0评论

When starting DockerDesktop on Windows 10 it raise the following error:

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: Failed to attach disk '\AppData\Local\Docker\wsl\distro\ext4.vhdx' to WSL2: The system cannot find the file specified. Error code: Wsl/Service/CreateInstance/MountVhd/HCS/ERROR_FILE_NOT_FOUND

When starting DockerDesktop on Windows 10 it raise the following error:

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: Failed to attach disk '\AppData\Local\Docker\wsl\distro\ext4.vhdx' to WSL2: The system cannot find the file specified. Error code: Wsl/Service/CreateInstance/MountVhd/HCS/ERROR_FILE_NOT_FOUND

Share Improve this question asked Feb 17 at 6:49 Sadegh GhanbariSadegh Ghanbari 2,8422 gold badges24 silver badges33 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

The error resolved by running these commands in CMD:

wsl --unregister docker-desktop
wsl --unregister docker-desktop-data

Execute above commands only if you don't need your DockerDesktop data. After running above commands, all your Docker data will be lost, including:

  • Docker images Running/stopped
  • containers
  • Volumes
  • Docker networks

Docker Desktop itself will not be uninstalled, but when restarted, it will attempt to recreate these WSL distributions.

发布评论

评论列表(0)

  1. 暂无评论