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

  • Question

  • 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


    • Edited by Eric_Hexter Thursday, March 30, 2017 2:03 PM
    Thursday, March 30, 2017 4:14 AM

All replies

  • I know it sounds stupid but seems like you're not running in a not elevated session.. could it be?
    • Proposed as answer by Myles Keating Thursday, April 13, 2017 7:35 PM
    Friday, March 31, 2017 7:30 PM