Docker Desktop distro installation failed
Description
deploying WSL2 distributions ensuring main distro is deployed: checking if main distro is up to date: checking main distro bootstrap version: getting main distro bootstrap version: open \wsl$\docker-desktop\etc\wsl_bootstrap_version: The network name cannot be found. checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found.
Reproduce
1.docker can not run
Expected behavior
No response
docker version
4.34.2
docker info
i do not know
Diagnostics ID
1D3FFE12-B262-4270-90D2-8C831A763E47/20241004230334
Additional Info
No response
I'm having the same issue.
deploying WSL2 distributions 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: open \wsl$\docker-desktop\etc\wsl_bootstrap_version: The network name cannot be found. checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found.
Diagnostics ID 3C8BCDCA-15EC-4C0D-BBB5-5855AAA0E474/20241005120655
i appear to be having the same issue as well:
Diagnostic ID 64670701-B305-4EFC-98A5-EFD32F895CDF/20241005204735
10-11 update after 4.34.3 installed:
deploying WSL2 distributions provisioning docker WSL distros: ensuring main distro is deployed: deploying "docker-desktop": importing WSL distro "Failed to attach disk 'C:\Program Files\WSL\system.vhd' to WSL2: The system cannot find the file specified. \r\nError code: Wsl/Service/RegisterDistro/CreateVm/MountVhd/HCS/ERROR_FILE_NOT_FOUND\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: Failed to attach disk 'C:\Program Files\WSL\system.vhd' to WSL2: The system cannot find the file specified. Error code: Wsl/Service/RegisterDistro/CreateVm/MountVhd/HCS/ERROR_FILE_NOT_FOUND : exit status 0xffffffff checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found.
plus error message now says a different message to try to wsl shutdown or reboot:
tried to open my wsl (ubuntu), but got this:
Failed to attach disk 'C:\Program Files\WSL\system.vhd' to WSL2: The system cannot find the file specified. Error code: Wsl/Service/CreateInstance/CreateVm/MountVhd/HCS/ERROR_FILE_NOT_FOUND Press any key to continue...
based on https://github.com/docker/for-win/issues/14350#issuecomment-2400375719, i confirmed bios didnt change
new diagnostic id: 64670701-B305-4EFC-98A5-EFD32F895CDF/20241011142104
10-17 update need something to move forward so getting desperate attempted to downgrade back to 4.34.1
basically same error
deploying WSL2 distributions provisioning docker WSL distros: ensuring main distro is deployed: deploying "docker-desktop": importing WSL distro "Failed to attach disk 'C:\Program Files\WSL\system.vhd' to WSL2: The system cannot find the file specified. \r\nError code: Wsl/Service/RegisterDistro/CreateVm/MountVhd/HCS/ERROR_FILE_NOT_FOUND\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: Failed to attach disk 'C:\Program Files\WSL\system.vhd' to WSL2: The system cannot find the file specified. Error code: Wsl/Service/RegisterDistro/CreateVm/MountVhd/HCS/ERROR_FILE_NOT_FOUND : exit status 0xffffffff checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found.
new diagnostic id: 64670701-B305-4EFC-98A5-EFD32F895CDF/20241017140050
10-25 update after 4.35.0 release on 10-24
deploying WSL2 distributions ensuring main distro is deployed: deploying "docker-desktop": importing WSL distro "Failed to attach disk 'C:\Program Files\WSL\system.vhd' to WSL2: The system cannot find the file specified. \r\nError code: Wsl/Service/RegisterDistro/CreateVm/MountVhd/HCS/ERROR_FILE_NOT_FOUND\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: Failed to attach disk 'C:\Program Files\WSL\system.vhd' to WSL2: The system cannot find the file specified. Error code: Wsl/Service/RegisterDistro/CreateVm/MountVhd/HCS/ERROR_FILE_NOT_FOUND : exit status 0xffffffff checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The filename, directory name, or volume label syntax is incorrect.
new diagnostic id: 64670701-B305-4EFC-98A5-EFD32F895CDF/20241025145605
same issue here:
I'm having the same issue.
deploying WSL2 distributions 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: open \wsl$\docker-desktop\etc\wsl_bootstrap_version: The network name cannot be found. checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found.
Diagnostics ID 3C8BCDCA-15EC-4C0D-BBB5-5855AAA0E474/20241005120655
Well, I solved my problem. Somehow the VM toggle in BIOS was switched off. I turned it back on and Docker Desktop loaded properly,
I'm having the same issue here.
Diagnostics ID FA0C71C2-5DAC-452F-B52E-4C87C95E02E8/20241016080648
Well, I encountered with the same issue and just got solved it. Check if Virtualization-based Security is enabled. You can check it by running 'msinfo32'. If it is disabled, here is the guide how to enable it 👇
https://youtu.be/_hPR6HBw61E?si=cFR5Mh1KsUGl0eFZ
got frustrated and purged and restarted docker desktop. deleted docker folder from c:\users\name.docker and under appdata local/roaming. didnt work still. had reinstalled wsl couple times.
but updated to wsl 2.3.25 pre-release and docker desktop is working
How to fix the error is as follows:
- Turn off docker desktop
- Run Terminal Admin: wsl --unregister docker-desktop
How to fix the error is as follows:
- Turn off docker desktop
- Run Terminal Admin: wsl --unregister docker-desktop
I try this but I keep on getting an error that there is no distro with that name.
wsl --unregister docker-desktop
Unregistering. There is no distribution with the supplied name. Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND
La forma de solucionar el error es la siguiente:
Desactivar Docker Desktop Ejecutar el administrador de terminal: wsl --unregister docker-desktop
I solved by edit the registers!
- run msinfo32 by Cmd+R, to see whether the virtualization safety is running, if not:
- run regedit by Cmd+R, find
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard, and add aEnableVirtualizationBasedSecurityitem with type REG_DWORD, value 1, and restart ur computer
(And AI said some simulators would disable this option for a stable running)
I solved by edit the registers!
* run msinfo32 by Cmd+R, to see whether the virtualization safety is running, if not: * run regedit by Cmd+R, find `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard`, and add a `EnableVirtualizationBasedSecurity` item with type REG_DWORD, value 1, and restart ur computer(And AI said some simulators would disable this option for a stable running)
that's it. You need to do this after using mobile emulators on win10