Skip to content
This repository was archived by the owner on Jun 16, 2021. It is now read-only.

Can not install Docker package with PowerShell 7. #78

@doctordns

Description

@doctordns

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions