Docker Desktop – Virtual Machine Platform not enabled Virtual Machine Platform is not enabled. Enable it using the following PowerShell script (in an administrative PowerShell) and then restart your computer before using Docker Desktop

Step 1: Enable Virtual Machine Platform via PowerShell

  1. Open PowerShell as an Administrator.
    • Press Win + X and select Windows PowerShell (Admin) or Terminal (Admin) if you’re using Windows Terminal.
  2. Run the following command to enable the Virtual Machine Platform:
    dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
  3. Also, enable the Windows Subsystem for Linux (WSL) feature, which Docker often uses:
    dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  4. After both features are enabled, restart your computer for the changes to take effect:
    Restart-Computer

Step 2: Verify Virtual Machine Platform is Enabled

After restarting your computer:

  1. Open PowerShell again (with administrative privileges) and check if the Virtual Machine Platform is enabled by running:
    Get-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform

    It should show that the feature is enabled.

  2. You can also verify that WSL is enabled with:
    Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Step 3: Start Docker Desktop

Once you’ve enabled both features and restarted your system, open Docker Desktop. It should now run without the “Virtual Machine Platform not enabled” error.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments