-
Notifications
You must be signed in to change notification settings - Fork 2k
Cannot run docker-machine in powershell #3152
Comments
@devshorts It appears that Cheers, |
This is caused by Gow. Gow has a I get the same error as the OP when I run
From Git Bash, I get no error whatsoever:
If I take Gow out from my The "C:\Program Files (x86)\Gow\bin\ssh.bat"
|
+1. I created docker-cmd-js, which should help running docker commands on Windows. Most common usage I can see would be using it in gulp. See blog about it if interested. Everything works fine until I execute |
This appears to be a bug in golang's native The offending code is in the getSSHCmd function, currently at line 376 of: Problem: I'm not currently familiar enough with the Go language to propose any kind of Pull Request, but I'm sure there's something simple that can be done to resolve this. Of course, the work-around is to use some kind of mingw bash shell to run docker-machine, but because it already detects the OS as Windows, you have to remember to add the |
I can confirm that this problem still exists. My setup: Calling Perhaps the problem is related to these issues:
The way that I resolve most of my SSH-related issues, is by letting PowerShell start a |
Note I am using Windows 10 Pro with Hyper-V and docker for windows. Now docker-machine runs in the powershell and git bash.
|
I did a fresh install of the docker toolbox on a new windows box today. I can run docker fine in the docker quickstart
But in powershell
When trying to set env
Seems like something may be wrong with ssh?
I'm not sure. Any help would be appreciated
-- EDIT
I switched my ssh to be git ssh but still no dice
-- EDIT
turns it this is somehow related to running powershell in admin mode. After changing the ssh env var path I can run docker-machine fine in not powershell admin mode.
The text was updated successfully, but these errors were encountered: