2 Docker Desktop - Unexpected WSL error

So every restart of an app i has that error, it can be fixed only with “wsl --unregister docker-container” command in cmd, but each time i restart app i has the same.
How to fix that?

deploying WSL2 distributions
ensuring data disk is available: exit code: 4294967295: running WSL command wsl.exe C:\WINDOWS\System32\wsl.exe --mount --bare --vhd E:\Docker\wsl\DockerDesktopWSL\disk\docker_data.vhdx: Не удалось подключить диск “\?\E:\Docker\wsl\DockerDesktopWSL\disk\docker_data.vhdx” к WSL2: Access is denied.
Error code: Wsl/Service/AttachDisk/MountVhd/HCS/E_ACCESSDENIED
: exit status 0xffffffff
checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found.

This looks like the same error I got both before and after I restarted my computer. I restarted the Docker Desktop Service in Services and opened Docker Desktop again and it appears to be working.

So any fixes?
Cause im done having it
I did fix it somehow, playing with wsl path and administrator permissions of folders and app
But anyway too anoying if i have it on other device


i am also having this problem but problem same ,any one have idea please help us

Hi, I managed to get this working for me. I had to add the user account i was logged in with (windows) to the DockerDesktopWSL folder (I had changed my location to a second drive) had to give the same permissions as found on the C/Users/account/.docker folder. (in my case i found my user account was on the .docker file but not on my WSL folder) hope this helps

I faced the same issue and here are the steps which I followed, and it worked for me

  1. Uninstall the current Docker Desktop.
  2. Remove any .docker folder from your user directory.
  3. Clean the %temp% folder.
  4. Unregister docker-desktop using WSL.
  5. Run wsl --update.
  6. Reinstall Docker Desktop.
  7. Restart Windows.

Reinstalling docker always helps
But only once
The problem is in docker