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:
Share Improve this question asked Feb 17 at 6:49 Sadegh GhanbariSadegh Ghanbari 2,8422 gold badges24 silver badges33 bronze badgesprovisioning 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
1 Answer
Reset to default 0The 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.