How to enable the Windows 10 "Containers" feature?

15,068

Solution 1

Quote from the documentation:

Supported operating system

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

Solution 2

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

Here where it is:

enter image description here

Solution 3

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.

Solution 4

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
Share:
15,068
Uwe Keim
Author by

Uwe Keim

German developer. Some of my apps: SharePoint Systemhaus Göppingen (zwischen Stuttgart und Ulm) Eigene Homepage erstellen Test Management Software Windows 10 Ereignisanzeige Very proud father of Felix (2012) and Ina (2014). Loves running, climbing and Indian food. Code Project member #234.

Updated on June 24, 2022

Comments

  • Uwe Keim
    Uwe Keim almost 2 years

    Using the latest Windows 10 Fast Ring build 14316 (inside a VMware virtual machine), I'm trying to make the Desktop App Converter function working.

    When running the PowerShell script as advised:

    PS C:\> .\DesktopAppConverter.ps1 -Setup -BaseImage .\BaseImage-14316.wim
    

    I'm getting an error:

    Assert-RequiredFeatureEnabled: fatal error 1000: required feature is not installed or enabled. Please refer to machine setup instructions.
    In C:\MyPath\DesktopAppConverter\converter_util\EnvironmentAssertions.ps1:40 Zeichen:9

    When looking into the mentioned source code, it seems that this line fails:

    $feature = Get-WindowsOptionalFeature -Online -FeatureName "Containers"
    

    I've already tried to enable various Windows features without success.

    My question:

    What is this "Containers" feature and how to enable it?

  • Uwe Keim
    Uwe Keim about 8 years
    Thanks. How do I have to view this in the context that the Desktop App Converter is explicitely said to be used on Windows 10 build 14316? Maybe the "Containers" do mean something else here?
  • Uwe Keim
    Uwe Keim about 8 years
    OMG, that seems to be the solution! I'm currently having Windows 10 Home only. Will try to update, thanks a lot!
  • harsimranb
    harsimranb about 8 years
    Make sure you select "Fast Ring" when you enable insider builds. I did slow ring and I got Build 14295, which doesn't have it.
  • Erik Funkenbusch
    Erik Funkenbusch almost 8 years
    Actually, the most recent Windows 10 builds have Containers as well, you can enable them in Programs and Features->Windows Features, or through the usual dism or powershell methods
  • Erik Funkenbusch
    Erik Funkenbusch almost 8 years
    Actually, Containers show up in my Windows 10 Pro build 14332 as well
  • Nathan Moinvaziri
    Nathan Moinvaziri over 7 years
    Appears to be available for Windows Professional too. PowerShell command: Enable-WindowsOptionalFeature -Online -FeatureName containers -All
  • Ibad Shaikh
    Ibad Shaikh over 2 years
    This error warning came : Enable-WindowsOptionalFeature : The requested operation requires elevation.
  • Vergil C.
    Vergil C. about 2 years
    @IbadShaikh run powershell as admin, then execute that command