There was a problem with WSL

I’m on windows 10.

I did ,

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Une fois que votre poste est redemarré, lancez cela :
wsl --update
wsl --set-default-version 2

everythings gone well…

and I’m still getting this error message…

An error occurred while running a WSL command. Please check your WSL configuration and try again.

running wslexec: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. Wsl/0x80070422: c:\windows\system32\wsl.exe --terminate docker-desktop: exit status 0xffffffff (stderr: , stdout: Le service ne peut pas être démarré parce qu’il est désactivé ou qu’aucun périphérique activé ne lui est associé.
Code d’erreur : Wsl/0x80070422
, wslErrorCode: Wsl/0x80070422).

What’s the problem? Can someone please help me?

Problems with WSL could have various reasons, so there won’t be an universal recommendation or a single soution that fixes every possible problem.

You should try the suggestions from Microsoft own troubleshooting recommendations:

Once you get WSL working, Docker Desktop should be able to run as well.

The in-box version that gets installed after the feature is enabled is too old. Make sure you install the latest (as in not a Pre-release) release from: Releases · microsoft/WSL · GitHub