WARNING: Unable to find module repositories

前端 未结 4 1605
半阙折子戏
半阙折子戏 2020-12-25 11:59

I tried to install Docker on activated windows server 2016 standard. I executed “Install-Module -Name DockerMsftProvider -Repository PSGallery -Force” but faile

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-25 12:29

    Simply running Register-PSRepository -Default (without any additional parameters) worked for me. After that, the Gallery was successfully registered:

    PS C:\Windows\system32> Get-PSRepository
    
    Name                      InstallationPolicy   SourceLocation
    ----                      ------------------   --------------
    PSGallery                 Untrusted            https://www.powershellgallery.com/api/v2/
    

提交回复
热议问题