Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable the Windows 10 "Containers" feature?

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?

like image 603
Uwe Keim Avatar asked Apr 13 '16 06:04

Uwe Keim


People also ask

How do I enable containers in Windows 10 home?

System Requirements: Install Hyper-V on Windows 10 Home edition. Enable Hyper-V and Container Windows Feature by pressing Windows Key and R, then enter OptionalFeatures. Make sure the features are checked, press OK to make the changes.

How do I use containers in Windows 10?

Run a Windows container using Windows Admin Center First, open the container host you want to manage, and in the Tools pane, select the Containers extension. Then, select the Images tab inside the Container extension under Container Host. In the Pull Container Image settings, provide the image URL and the tag.

How do I enable Hyper-V containers in Windows 10?

Enable the Hyper-V role through SettingsRight click on the Windows button and select 'Apps and Features'. Select Programs and Features on the right under related settings. Select Turn Windows Features on or off. Select Hyper-V and click OK.

How do I enable Hyper-V containers?

In the Control Panel, go to Programs > Programs and Features. From the left pane, click on Turn Windows Features on or off. Select Hyper-V in the Windows Features window.


3 Answers

Quote from the documentation:

Supported operating system

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

like image 91
user6198402 Avatar answered Oct 04 '22 18:10

user6198402


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.

like image 34
user3856437 Avatar answered Oct 04 '22 20:10

user3856437


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

Here where it is:

enter image description here

like image 45
Ivan Davletshin Avatar answered Oct 04 '22 19:10

Ivan Davletshin