skip to Main Content

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.

enter image description here

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


  1. 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

    Error code: Wsl/Service/RegisterDistro/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED

    this is what might be hinting at the same thing

    and windows WSL FAQ’s talk about it too

    Yes. WSL 2 is available on all Desktop SKUs where WSL is available, including Windows 10 Home and Windows 11 Home. Specifically, WSL2 requires two features to be enabled: "Virtual Machine Platform" (a subset of Hyper-V)

    Login or Signup to reply.
  2. wsl –set-default-version 2
    this worked for me

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search