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 mount volumes since installing Docker Toolbox on Windows #16

Closed
AustinMaddox opened this issue Aug 17, 2015 · 6 comments
Closed

Comments

@AustinMaddox
Copy link

Last week when I was using Boot2docker, everything worked fine. Is it just me or is there no way to run docker-compose inside a container like this anymore with the Docker Toolbox?

From the Git Bash Docker Quickstart Terminal...

$ docker run -it --rm -v "$(pwd)":/app -v /var/run/docker.sock:/var/run/docker.sock dduportal/docker-compose up -d
invalid value "c:\\Users\\austin;C:\\Program Files (x86)\\Git\\app" for flag -v: bad mount mode specified : \Program Files (x86)\Git\app
See 'c:\Program Files\Docker Toolbox\docker.exe run --help'.

I'm running 64-bit Windows 7.

$ docker -v
Docker version 1.8.1, build d12ea79
@michalpristas
Copy link

same here.
installed docker tools 1.8.1c
MINGW64 on windows 8.1

docker version
Client:
Version: 1.8.1
API version: 1.20
Go version: go1.4.2
Git commit: d12ea79
Built: Thu Aug 13 02:49:29 UTC 2015
OS/Arch: windows/amd64

Server:
Version: 1.8.1
API version: 1.20
Go version: go1.4.2
Git commit: d12ea79
Built: Thu Aug 13 02:49:29 UTC 2015
OS/Arch: linux/amd64

@bweston92
Copy link

I get this issue too, Windows 10.

@dduportal
Copy link
Contributor

Hello !

I'll try to reproduce that, time for me to have at least a Windows 7 working (sorry, don't have Win 10 licence)

Is it possible to test as soon as I'll have something ?

@AustinMaddox
Copy link
Author

The temporary fix is avoid using "$(pwd)" and provide absolute paths with an extra / in front of them. Don't ask me why that works, I researched all over the internet for that strange workaround.

From the Git Bash Docker Quickstart Terminal...

$ docker run -it --rm -v //c/Users/your/path/to/app:/app -v //var/run/docker.sock:/var/run/docker.sock dduportal/docker-compose up -d

@tryjude
Copy link

tryjude commented Sep 12, 2015

Thanks @austin881. That solved my problem!

@dduportal
Copy link
Contributor

Seems OK after :

Both have pushed changes for usage in Windows.
Just tried on a fresh Win 10, and it's OK with the latest docker-toolbox (1.9.0).

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

5 participants