Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install on nano server over ssh #27

Open
dhiltgen opened this issue Apr 2, 2017 · 0 comments
Open

Unable to install on nano server over ssh #27

dhiltgen opened this issue Apr 2, 2017 · 0 comments

Comments

@dhiltgen
Copy link

dhiltgen commented Apr 2, 2017

I've set up a nano server image with https://github.com/PowerShell/Win32-OpenSSH installed (following along with the workaround instructions in PowerShell/Win32-OpenSSH#234 ) however I'm unable to install docker in the system. I'm not sure if the defect is because I'm performing the operations over ssh, or some other peculiarity, but the failure mode looks like the following:

% ssh -i /e2e/id_rsa [email protected] powershell
Windows PowerShell 
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\Users\docker> Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
y
y
y

PS C:\Users\docker> Install-Package -Name docker -ProviderName DockerMsftProvider
Install-Package -Name docker -ProviderName DockerMsftProvider
Install-Package -Name docker -ProviderName DockerMsftProvider
WARNING: Cannot find path 
'C:\Users\docker\AppData\Local\Temp\DockerMsftProvider\DockerDefault_DockerSear
chIndex.json' because it does not exist.
WARNING: Save-HTTPItem: Bits Transfer failed. Job State:  ExitCode = 
-2147023651
Install-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
+ Install-Package -Name docker -ProviderName DockerMsftProvider
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.Power....InstallPacka 
   ge:InstallPackage) [Install-Package], Exception
    + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.Pac 
   kageManagement.Cmdlets.InstallPackage
 

PS C:\Users\docker> dir    	
dir 
dir 


    Directory: C:\Users\docker


Mode                LastWriteTime         Length Name                          
----                -------------         ------ ----                          
d-----         4/1/2017   8:46 AM                .ssh                          
d-----         4/1/2017   8:48 AM                Documents                     

The first command spits out output about needing to install NuGet onto the physical console, not over ssh, but if I type "y" blindly it proceeds to install, and appears to work, however the second command fails, and the AppData dir doesn't exist. The docker account is an admin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant