WindowsCompatibility icon indicating copy to clipboard operation
WindowsCompatibility copied to clipboard

Can not install Docker package with PowerShell 7.

Open doctordns opened this issue 6 years ago • 0 comments

If I try to install the docker package I get an error, even using WInCompat:

PS C:\Foo> Install-package -Name Docker -ProviderName DOckerMSFTProvider -Force
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 -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (Microsoft.PowerShel…lets.InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : FailedToDownload,Install-Package,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

The Get-WindowsFeature command does indeed exist.

doctordns avatar Sep 17 '19 16:09 doctordns