After wsl --status I got this: The WSL 2 kernel file is not found. To update or restore the kernel please run ‘wsl --update’.
After running wsl --update everything works.
Hello…try this:
reboot your machine and log in with the Admin Account (not a user account) and go to CMD and type wsl --update, then run docker desktop.
After enabling virtualization in the BIOS still my docker was not running. Later I got to know my wsl command was not working. wsl --status → was showing- the specified service does not exist as an installed service.
So I installed wsl form this GitHub repo: Release 2.0.11 · microsoft/WSL · GitHub
And my docker started working.
For me it was a firewall issue I had “simple wall” enabled which is a software that lets you control what comes and goes to your PC. it was working in bg. disabling it worked!
I found a fix on Windows 11 for this exact issue where when I started Docker, it would load and tell me that it stopped. It then showed me this Docker Desktop - Unexpected WSL error.
The following steps worked for me:
1- Run Powershell as Admin.
2- Run the following commands one at a time to disable all Virtualization features (select no (N) when asked to restart computer):
DISM /Online /disable-Feature /FeatureName:VirtualMachinePlatform
DISM /Online /disable-Feature /FeatureName:HypervisorPlatform
DISM /Online /disable-Feature /FeatureName:Microsoft-Windows-Subsystem-Linux
3- Restart your computer manually
4- Run Powershell as Admin once your computer has rebooted.
5- Run the following commands in this order one at a time to re-enable all Windows Virtualization features (Again, select no (N) when asked to restart computer):
DISM /Online /enable-Feature /FeatureName:Microsoft-Windows-Subsystem-Linux
DISM /Online /enable-Feature /FeatureName:VirtualMachinePlatform
DISM /Online /enable-Feature /FeatureName:HypervisorPlatform
6- Reboot your computer manually.
7-Run Docker and see if it worked!
Of course you have to have enabled virtualization capabilities for your computer in your BIOS before attempting any of this. To enable virtualization in the BIOS, simply press F2 or DEL when your computer is booting and go in the advance settings. It should be called “Intel Virtualization technology” or something similar that contains the word “Virtualization”. Enable this feature and save the changes and reboot.
hHey! I tried this i could disable but getting 87 error while trying to enable them. (Also checked and made sure if the virtualization is enabled ). Any other fixes?