-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
When trying to install docker behind corporate proxy, I am currently blocked with following errors:
PS C:\Users\Administrator> Find-Package -Name docker -ProviderName DockerMsftProvider -Proxy http://<redacted> -Verbose
VERBOSE: Using the provider 'DockerMsftProvider' for searching packages.
WARNING: Cannot find path 'C:\Users\Administrator\AppData\Local\Temp\DockerMsftProvider\DockerDefault_DockerSearchIndex.json' because it does not exist.
WARNING: Cannot bind argument to parameter 'downloadURL' because it is an empty string.
WARNING: The property 'AbsoluteUri' cannot be found on this object. Verify that the property exists.
WARNING: The property 'RequestMessage' cannot be found on this object. Verify that the property exists.
Find-Package : No match was found for the specified search criteria and package name 'docker'. Try Get-PackageSource to see all available registered package sources.
At line:1 char:1
+ Find-Package -Name docker -ProviderName DockerMsftProvider -Proxy ht ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power...ets.FindPackage:FindPackage) [Find-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.FindPackage
This is on a dev VM, I can switch the same environment to non proxy protected network, and the installation works.
Install-Module -Name DockerMsftProvider -Repository PSGallery-alt -Force -RequiredVersion 1.0.0.8 -Verbose
VERBOSE: Repository details, Name = 'PSGallery-alt', Location = 'https://www.powershellgallery.com/api/v2/'; IsTrusted = 'True'; IsRegistered = 'True'.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: Using the specified source names : 'PSGallery-alt'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='DockerMsftProvider'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'DockerMsftProvider'.
VERBOSE: Performing the operation "Install-Module" on target "Version '1.0.0.8' of module 'DockerMsftProvider'".
VERBOSE: The installation scope is specified to be 'AllUsers'.
VERBOSE: The specified module will be installed in 'C:\Program Files\WindowsPowerShell\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'DockerMsftProvider' with version '1.0.0.8' from the repository 'https://www.powershellgallery.com/api/v2/'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='DockerMsftProvider'' for ''.
VERBOSE: InstallPackage' - name='DockerMsftProvider', version='1.0.0.8',destination='C:\Users\Administrator\AppData\Local\Temp\187410397'
VERBOSE: DownloadPackage' - name='DockerMsftProvider', version='1.0.0.8',destination='C:\Users\Administrator\AppData\Local\Temp\187410397\DockerMsftProvider\DockerMsftProvider.nupkg', uri='https://www.powershellgallery.com/api/v2/package/DockerMsftProvider/1.0.0.8'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/DockerMsftProvider/1.0.0.8'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/DockerMsftProvider/1.0.0.8'.
VERBOSE: Completed downloading 'DockerMsftProvider'.
VERBOSE: Hash for package 'DockerMsftProvider' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='DockerMsftProvider', version='1.0.0.8',destination='C:\Users\Administrator\AppData\Local\Temp\187410397'
VERBOSE: Catalog file 'DockerMsftProvider.cat' is not found in the contents of the module 'DockerMsftProvider' being installed.
VERBOSE: Valid authenticode signature found in the file 'DockerMsftProvider.psd1' for the module 'DockerMsftProvider'.
VERBOSE: For publisher validation, current module 'DockerMsftProvider' with version '1.0.0.8' with publisher name 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: For publisher validation, using the previously-installed module 'DockerMsftProvider' with version '1.0.0.8' under 'C:\Program Files\WindowsPowerShell\Modules\DockerMsftProvider\1.0.0.8' with publisher name 'CN=Microsoft Root Certificate Authority 2011,
O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: Authenticode issuer 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'DockerMsftProvider' with version '1.0.0.8' matches with the authenticode issuer 'CN=Microsoft Root Certificate
Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'DockerMsftProvider' with version '1.0.0.8'.
VERBOSE: Module 'DockerMsftProvider' was installed successfully to path 'C:\Program Files\WindowsPowerShell\Modules\DockerMsftProvider\1.0.0.8'.
PS C:\Users\Administrator> Find-Package -Name docker -ProviderName DockerMsftProvider -Proxy http://squid.tls.renault.fr:911 -Verbose
VERBOSE: Using the provider 'DockerMsftProvider' for searching packages.
VERBOSE: Download size: 0.02MB
VERBOSE: Free space on the drive: 199788.78MB
VERBOSE: Downloading https://dockermsft.blob.core.windows.net/dockercontainer/DockerMsftIndex.json to C:\Users\Administrator\AppData\Local\Temp\DockerMsftProvider\DockerDefault_DockerSearchIndex.json
VERBOSE: About to download
VERBOSE: Finished downloading
VERBOSE: Downloaded in 0 hours, 0 minutes, 0 seconds.
Name Version Source Summary
---- ------- ------ -------
Docker 19.03.1 DockerDefault Contains Docker EE for use with Windows Server.
Note that I use PSGallery-alt as the Register-PSRepository -Default -verbose does not work behind proxy. (that will be another bug report)
thachhuynh
Metadata
Metadata
Assignees
Labels
No labels