How to fix C:\Windows\System32>wsl Error: 0xd0000022 Error code: Wsl/Service/CreateInstance/0xd0000022

Sivaprathap S 0 Reputation points
2025-02-19T15:49:19.6033333+00:00

When I run this getting the below error,

C:\Windows\System32>wsl

Error: 0xd0000022

Error code: Wsl/Service/CreateInstance/0xd0000022

The reason I tried this is that Docker Desktop on my Windows 11 laptop suddenly stopped working and started showing the following error while deploying WSL2 distributions:

deploying WSL2 distributions

ensuring main distro is deployed: checking if main distro is up to date: checking main distro bootstrap version: getting main distro bootstrap version: open \wsl$\docker-desktop\etc\wsl_bootstrap_version: The network name cannot be found.

checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found.

Docker desktop version: 4.38.0

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,041 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Zunhui Han 3,810 Reputation points Microsoft External Staff
    2025-03-12T09:18:56.5866667+00:00

    Hello,

    Thank you for posting in Q&A forum.

    The error code Wsl/Service/CreateInstance/0xd0000022 typically occurs when there is an issue with the Windows Subsystem for Linux (WSL). This error often indicates a problem with the WSL installation or configuration. Here are some steps you can take to troubleshoot and resolve the issue:

    1. Make sure that the Windows Subsystem for Linux feature is enabled on your system.Open PowerShell as Administrator and run the following command:

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

    1. The Virtual Machine Platform feature is required for WSL 2. Ensure it is enabled.In the same PowerShell window, run:

    dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

    Restart your computer after enabling these features.

    1. Ensure that you are using the latest version of WSL. You can update WSL by running the following command in PowerShell:

    wsl --update

    I hope the information above is helpful.

    Best regards

    Zunhui

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.