Hello everyone,
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.
I hope this helps you guys! Safe Travel!