-
Notifications
You must be signed in to change notification settings - Fork 46
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
Unix Commands in Windows Environments. #17
Comments
Does $PWD work? Can you try that? |
I don't have access to a windows machine. Do you think a virtual machine running windows would work because I can make one of those, or would running a vm in a vm be too much? |
I was able to test on Irina's machine and no, $PWD does not work either |
Hmm, might have to use the full path for windows as it shows here: On Fri, Oct 9, 2015 at 2:57 PM John Paul Keenan [email protected]
|
I'm running docker on Windows and using Kitematic (the GUI) created a Linux VM via Oracle Virtual Box. I launch it using Docker Toolbox Terminal. From within the Docker terminal window (which is a Linux VM) I got it working by putting an extra '/' in front of the volume and working directory paths: docker run --rm -v "/$(pwd)":/worker -w //worker iron/images:... Install docker (which includes Oracle VirtualBox) on Windows from here: http://docs.docker.com/engine/installation/windows/ FYI - after installation I had issues starting Kitematic and manually launching the Docker terminal until I enabled the VirtualBox Bridged Networking Driver :-P. |
When runnig Docker for Windows and Powershell, you can simply use the full path. Here is an example: PS C:\Users\tomtz\dev\dfc> ls Mode LastWriteTime Length Name d----- 1/15/2017 9:28 AM background PS C:\Users\tomtz\dev\dfc> docker run -it -v C:\Users\tomtz\dev\dfc:/usr/src/dfc dfc Anything I try in git bash or PS that pertains to obtaining the paths returns double backslashes that confuse the docker -v parser. ( I tried: $PWD, PWD, $pwd.Path) |
I've been using docker run --rm --name functions -it -v /var/run/docker.sock:/var/run/docker.sock -v ${pwd}/data:/app/data -p 8080:8080 iron/functions Using this here: https://github.com/iron-io/functions/blob/master/docs/operating/windows.md |
The docker run --rm -v "$(pwd)":/worker -w /worker iron/images:... command will not work in Windows because $(pwd) is a Unix command.
To correct this issue, the actual path needs to be entered in.
The text was updated successfully, but these errors were encountered: