OneGet / MicrosoftDockerProvider

Provider to search, save and install Docker
Other
135 stars 56 forks source link

'Install-WindowsFeature' is not recognized as the name of a cmdlet #41

Closed romulomadu-zz closed 4 years ago

romulomadu-zz commented 6 years ago

Hi, I got this error when I tried to run:

Install-Package -Name docker -ProviderName DockerMsftProvider -Verbose

Error:

Install-Package : The term 'Install-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

System:

Windows Server 2008 R2 SP1 Powershell 5.1

lkts commented 6 years ago

Docker will not work on system lower than Windows Server 2016 anyway.

ghost commented 5 years ago

Any workaround ?

sandersaares commented 5 years ago

Upgrade to Windows Server 2016 (or, soon, 2019).

cwilhit commented 4 years ago

Other folks on this thread are correct. Please upgrade to WS2016 or newer. Containers are not a supported feature prior to that release.