Windows Containers


"install-package -name docker" fails on windows server 2016 standard


UPDATE: Cross posted to github repository. https://github.com/OneGet/MicrosoftDockerProvider/issues/26
Following the directions from here: https://docs.microsoft.com/en-us/virtualization/windowscontainers/quick-start/quick-start-windows-server I have multiple vms that cannot install the docker package.
When I run the command install package, I expect the command to complete successfully, but instead it throws an error:
Install-Package : The term 'Get-WindowsFeature' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
Example Below:
PS C:\> Install-Package -Name docker -ProviderName DockerMsftProvider -verbose
VERBOSE: Using the provider 'DockerMsftProvider' for searching packages.
VERBOSE: Download size: 0MB
VERBOSE: Free space on the drive: 94081.73MB
VERBOSE: Downloading https://dockermsft.blob.core.windows.net/dockercontainer/DockerMsftIndex.json to
C:\Users\ADMINI~1\AppData\Local\Temp\1\DockerMsftProvider\DockerDefault_DockerSearchIndex.json
VERBOSE: About to download
VERBOSE: Finished downloading
VERBOSE: Downloaded in 0 hours, 0 minutes, 1 seconds.
VERBOSE: Performing the operation "Install Package" on target "Package 'Docker' version '17.03.0-ee' from
'DockerDefault'.".
The package(s) come(s) from a package source that is not marked as trusted.
Are you sure you want to install software from 'DockerDefault'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): a
Install-Package : The term 'Get-WindowsFeature' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ Install-Package -Name docker -ProviderName DockerMsftProvider -verbos ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],
Exception
+ FullyQualifiedErrorId : FailedToDownload,Install-Package,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallP
ackage
I know it sounds stupid but seems like you're not running in a not elevated session.. could it be?

Related Links

Nanoserver container not working with TP5
DTC in container
problems with mount full driver for the container
Does anybody ssh to a windows container?
Windows container docker pull fails.
Error Looking at Container Network.
how to call the docker daemon in Azure VM Windows Server 2016 TP5 from a client docker on windows 10
Github container example for apache produces non-zero code 255 on TP5
TP5 Unable to run windowsservercore with docker native command
Hyper-V Error - the operation cannot be performed while the object is in its current state
Remote debugging of C++ applications using visual studio inside container
Static IP Addresses: Constraints related to NAT networks
Can I do anything right now to get Visual Studio to deploy to a windows container?
Get-EventLog inside container - InvalidOperationException
Trouble Collection TP 5
Continuous Integration - Windows, Databases, and Licenses

Categories

MSDN
Visual Studio Languages
JScript and Scripting
Machine Translation an...
Microsoft Sync Framework
Windows Embedded Standard
SQL Server (Pre-release)
Orchard
ScriptJunkie
WebsitePanel
Samsung PC
Microsoft Atlas API: D...
Archive
Archived Forums E-H
Archived Forums M
Archived Forums W
Windows Phone Preview ...
Archived Forums
Cortana
Visual C++
Visual Studio Code Vis...
AdSDK Integration & Ad...
DirectShow Development
Peer-to-Peer Networkin...
Windows Hardware Testi...
Developing Apps for Of...
General Office Develop...
Open XML Format SDK
SharePoint 2013 - Search
Service Bus
Azure Mobile Apps
Azure Backup
Azure Marketplace
Azure Batch
StorSimple
Language Understanding...
Azure Functions
Azure Database for Pos...
Team Foundation Server...
Microsoft Translator U...
SyncFx - General [Read...
SyncFx - SyncToy-File ...
Microsoft Robotics - V...
Windows Mobile Develop...
Visual Studio Smart De...
SQL Server SMO/DMO
SQL Server Application...
SQL Server In-Memory T...
Windows Embedded Compa...
SQL Server 2012 Integr...
Windows Server 2008 Ap...
Windows Live  Spaces: ...
MSDN Subscriptions Fee...
Script Junkie Discussion
Speech Service for Dev...
Bing Maps General
Bing Maps Web Controls
Bing Ads API: Development
Silverlight 5
Performance Profiling ...
MVVM / ViewModel Patte...
Expression Studio with...
Expression Blend + Ske...
Expression Studio
Windows Performance To...
Customer Care Framework
Retired SharePoint Bus...
Retired SharePoint Ent...
.NET Framework 4 Appli...
Charts & Reports in th...
CHESS – Find and Repro...
Core Coding Experience...
General Troubleshootin...
ISV Community Days
Microsoft "Data Explor...
Monitor, Alert and Aut...
Popfly General Discussion
POS for .NET
Search Server: Known B...
Server Core Developers
Share your How to samp...
SyncFx - Microsoft Syn...
Tellme Studio (retired)
TFS Deployment to Azure
Visual Basic 2008 (Pre...
Visual Basic Language
Visual C# IDE
Visual Studio 2008 (Pr...
Visual Studio Applicat...
Visual Studio Team Sys...
Visual Studio Tools fo...
Visual Studio WPF/SL D...
Visual Studio Online "...
Web Development in Vis...
Windows Desktop Vista ...
Windows Workflow Found...
Windows XP Wireless SDK
Building Windows Store...
Tools for Windows Stor...
XNA Game Studio Express
Reporting
Windows Phone Preview SDK
Microsoft Graph

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile