Docker Desktop – Windows 11 – Unexpected WSL error An unexpected error
occurred while executing a WSL command.
I’m having trouble with Docker Desktop on my Windows 11 system. I get an Unexpected WSL error when I try to run Docker.
I have attached a screenshot showing the error message after launching the Docker application for more context.
Also, the error message is as follows:
deploying WSL2 distributions
ensuring main distro is deployed: deploying "docker-desktop": importing WSL distro "WSL2 is not supported with your current machine configuration.rnPlease enable the "Virtual Machine Platform" optional component and ensure virtualization is enabled in the BIOS.
Enable "Virtual Machine Platform" by running: wsl.exe --install --no-distribution
For information please visit https://aka.ms/enablevirtualization
Error code: Wsl/Service/RegisterDistro/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED
: exit status 0xffffffff
checking if isocache exists: CreateFile \wsl$docker-desktop-dataisocache: The network name cannot be found.
2
Answers
pretty sure , it has to do with the windows feature virtual machine platform how to enable virtualisation
which also requires VT extension to be enabled. you can check it out
this is what might be hinting at the same thing
and windows WSL FAQ’s talk about it too
wsl –set-default-version 2
this worked for me