How to enable the Windows 10 "Containers" feature?

Quote from the documentation:

Supported operating system

Windows 10 Anniversary Update Enterprise edition preview (Build 10.0.14316.0 and later)


Now, you need to enable "Get Insider Preview builds".

Here where it is:

enter image description here


Just run this command in PowerShell:

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

Click Y. It will restart. After that, you're good.

I ran that command on Windows 10 Pro.


It looks like Hyper-V didn't get installed correctly either Try to remove them, then install manually to see if that helps. Make sure you run power shell as an admin.

Disable-WindowsOptionalFeature -FeatureName microsoft-hyper-v -online
restart-computer
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
restart-computer
Enable-WindowsOptionalFeature -Online -FeatureName Containers -All

Enable-WindowsOptionalFeature -Online -FeatureName 
$("VirtualMachinePlatform","Microsoft-Windos-Subsystem-Linux") 
restart-computer