Containers Features is Disabled : Docker Desktop

This error may occur when you are trying to switch to Windows containers from Linux Containers in Docker Desktop.

Error: Containers features is disabled. Enable it using the Power shell script (in an Administrative Powershell) and restart your computer before using Docker Desktop


Solution:

To fix this issue, run the below command in the Powershell

Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V","Containers") - All

The above command should be run as an administrator

Once this command is executed. Press Y on the Powershell prompt to restart your computer.Once the computer is restarted, Click on “Switch to Windows containers”. Now you will be switched to Windows Containers.

Scroll to Top