PowerShell / WindowsCompatibility

Module that allows Windows PowerShell Modules to be used from PSCore6
Other
137 stars 33 forks source link

Can not install Docker package with PowerShell 7. #78

Open doctordns opened 4 years ago

doctordns commented 4 years ago

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.