-
Notifications
You must be signed in to change notification settings - Fork 2k
env output is not compatible with windows #732
Comments
See #733 (comment) (we currently recommend to install msysgit which has bash). |
I think in the future, we should support at least powershell |
I agree -- but I defer to @ahmetalpbalkan as he has better domain knowledge than I do. |
I've played with Assuming Chocolatey we can install VirtualBox and curl with two little steps. I have made all these steps in a good old cmd.exe shell: λ cinst virtualbox
λ cinst curl Then download docker-machine.exe and docker.exe λ curl -L -o docker-machine.exe https://github.com/docker/machine/releases/download/v0.1.0/docker-machine_windows-amd64.exe
λ curl -L -o docker.exe https://master.dockerproject.com/windows/amd64/docker.exe Now create a VirtualBox dev machine: λ docker-machine create -d virtualbox dev And here comes my favorite for λ for /f "tokens=2" %i in ('docker-machine env dev') do set %i We are almost up and running. But the This could be done with a little trick: λ sed -ibak -b docker.exe -e 's/1.18/1.17/g' And now you can do something like λ docker logs
λ docker images Maybe this helps. |
@StefanScherer thanks for the info! i hope to have a "recommended" guide soon so you don't have to jump through all of those hoops! |
I'm hopefully waiting for docker 1.6.0 release to support this out of the box. @StefanScherer awesome info! I got stuck with the different protocol versions, using Is it usable like that or do you actually run into protocol incompatibilies quite early for the basic commands? |
@tknerr @StefanScherer about the overriding API version, you can +1 the proposal here: moby/moby#11486 |
@ahmetalpbalkan I'll have a look at your proposal.
After correcting the
So IMHO the |
@StefanScherer sorry I didn't get your point.
this is not a valid usage for cmd.exe. you should not use backslashes or double quotes. I recently fixed the same issue b2d-cli for windows: boot2docker/boot2docker-cli#356 I'm hoping to port that here soon. |
@ahmetalpbalkan I've just retried my I know the output of |
@StefanScherer umm, yes this issue is about that precisely :) |
@ahmetalpbalkan your PR in boot2docker-cli looks promising! |
@StefanScherer this is a goal for 0.3.0 -- better windows experience. we want to be able to support cmd.exe / powershell out of the box. |
Closing. this had been fixed |
export wouldn't work on windows cmd.exe/powershell. We must generate the correct output for cmd/ps and must also keep in mind that user might be running on mingw(msys)/cygwin and in that case this output is already valid (except the cert path though). I may fix this some time, not top priority.
The text was updated successfully, but these errors were encountered: