for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Docker Desktop distro installation failed

Open njustczz opened this issue 1 year ago • 10 comments

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

njustczz avatar Oct 04 '24 23:10 njustczz

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

pecenco avatar Oct 05 '24 12:10 pecenco

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:

Image

tried to open my wsl (ubuntu), but got this:

Image

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

minoseah629 avatar Oct 05 '24 22:10 minoseah629

same issue here: Image

laarmada avatar Oct 08 '24 08:10 laarmada

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,

pecenco avatar Oct 08 '24 16:10 pecenco

I'm having the same issue here.

Diagnostics ID FA0C71C2-5DAC-452F-B52E-4C87C95E02E8/20241016080648

arthanis avatar Oct 16 '24 08:10 arthanis

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

mak1ss avatar Oct 23 '24 16:10 mak1ss

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

minoseah629 avatar Nov 03 '24 17:11 minoseah629

How to fix the error is as follows:

  1. Turn off docker desktop
  2. Run Terminal Admin: wsl --unregister docker-desktop

duclong09 avatar Nov 07 '24 08:11 duclong09

How to fix the error is as follows:

  1. Turn off docker desktop
  2. 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

kohinoor-blaggan avatar Feb 25 '25 20:02 kohinoor-blaggan

La forma de solucionar el error es la siguiente:

Desactivar Docker Desktop Ejecutar el administrador de terminal: wsl --unregister docker-desktop

garcialopez avatar Mar 17 '25 21:03 garcialopez

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)

2bdenny avatar May 05 '25 11:05 2bdenny

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

env0j avatar Oct 07 '25 21:10 env0j