Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WSL2 Failed install docker desktop on Windows 11

When I use the win11 version and use wsl2 to distribute Docker Desktop 4.16.3, Error prompt encountered during startup enter image description here Docker failed to initialize Docker Desktop is shutting down

Docker.Core.HttpBadResponseException: {"message":"2 errors occurred:\n\t* provisioning docker WSL distros: deploying \"docker-desktop\": importing WSL distro \"docker-desktop\": deploying WSL distro \"docker-desktop\" (\"C:\\\\Program Files\\\\Docker\\\\Docker\\\\resources\\\\wsl\\\\wsl-bootstrap.tar\" -\u003e \"C:\\\\Users\\\\15208\\\\AppData\\\\Local\\\\Docker\\\\wsl\\\\distro\"): exit status 0xffffffff\n\t* checking if isocache exists: CreateFile \\\\wsl$\\docker-desktop-data\\isocache\\: The network name cannot be found.\n\n"}

I try to change the version

Update system

set wsl default version

wsl --upate; wsl --shutdown

There is no way to solve it

like image 877
mindleader Avatar asked Jan 25 '26 14:01

mindleader


2 Answers

you could run wsl --update then on the cmd as admin netsh winsock reset then restart the machine worked for me

like image 142
SaifGo Avatar answered Jan 27 '26 04:01

SaifGo


Solved the problem by upgrading the Windows version. Docker Windows clients need at least 22H2 version. Support details: https://docs.docker.com/desktop/setup/install/windows-install/

  • WSL version 1.1.3.0 or later.
  • Windows 11 64-bit: Home or Pro version 22H2 or higher, or Enterprise or Education version 22H2 or higher.
  • Windows 10 64-bit: Minimum required is Home or Pro 22H2 (build 19045) or higher, or Enterprise or Education 22H2 (build 19045) or higher.
  • Turn on the WSL 2 feature on Windows. For detailed instructions, refer to the Microsoft documentation.
like image 27
mindleader Avatar answered Jan 27 '26 05:01

mindleader



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!