-
Notifications
You must be signed in to change notification settings - Fork 286
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
docker-compose bind mount docker.sock not a valid Windows path #1829
Comments
Reverting to
works without an error. |
THis is critical for us, too! |
@ameier38 Where can I find this older verison of docker? |
@ChristianSauer Go to install page and then download the stable channel. |
It would be really helpful for us Edge users if you could keep the previous Edge versions available for download so when something fundamental like this breaks we can just roll back one Edge release, instead of having to revert all the way back to Stable. |
You can download previous versions from this page https://docs.docker.com/docker-for-windows/release-notes/ |
@creativearmenia So you can, I missed that. Thank you! |
It's still an issue in 18.03.0-ce-rc4 |
The windows version of docker doesn't use unix socket (/var/run/docker.sock) but npipe (npipe:////./pipe/docker_engine).
The doc is here : https://docs.docker.com/docker-for-windows/faqs/#how-do-i-connect-to-the-remote-docker-engine-api |
@stalb This is not about connecting to the API, it's about mounting the |
Looks like this issue is in stable now, and just wiped out an environment that uses an nginx proxy, listening to https://github.com/jwilder/nginx-proxy Docker Version: |
We are getting into same issues on stable driver, when can we get fix for this.? Do we need to switch back to previous stable release.? Is there a workaround for this until we get fix in next stable driver.? |
@jagraj I reverted to the last version, |
I am wondering how this blocking issue ended up in stable release where customers already reported in edge drivers. |
Docker-for-Windows team: Please let us know that you've registered this critical regression! It's on track to break our product for Windows users. |
We've also had this reported for some of our Windows lando users. |
Docker For Windows updated to 18.03.0-ce-win59 (16762) on the stable channel today and I ran into this issue as well. Docker-compose is unable to bind to /var/run/docker.sock |
I've managed to work around this issue by setting environment variable Issue seems to have been introduced by this commit docker/compose@2fbec60, most likely docker/compose@2fbec60#diff-e2ff86ffa7e639ddeff3723cabf428eeR150. So this doesn't seem to be a Docker for Windows issue directly and probably should be fixed in compose? |
@jimgolfgti 's marvelous workaround in #1829 (comment) is the ticket for us. Thanks so much for sharing that. |
The workaround from @jimgolfgti didn't work for me in Git for Windows 2.16.2.1 bash shell. Same error with and without the environment variable. Uninstalled d4w 18.x and installed 17.12.0-ce-win47 (15139), and now everything works as before. |
Came here to say the same, update broke things with docker-compose and the ability to bind "/var/run/docker.sock". |
run |
@sv1slim |
I can confirm that it is working on my Git Bash. @shpros the quickest way to test it works is by doing something like:
If you do not export, the environment variable may not make it all the way through the processes spawned -- especially if you are using other services that run docker-compose. Once confirmed working through this route, you can add it to your environment through more permanent means, through editing |
@thiagosoeiro try it in git bash instead. Windows Powershell option didnt work for me either |
@subrato30 none of the options is working for me. :( |
@thiagosoeiro as mentioned in my previous comment, try uninstalling d4w 18.x and backing off to the latest 17.x version. You'll have to tell it not to update itself, or you'll be back where you started. |
Per docker/for-win#1829, set docker-compose COMPOSE_CONVERT_WINDOWS_PATHS env variarble to convert windows paths.
Is there any update on this? Having serious issues with many workloads on Windows. Docker 18.06.1-ce-win73 (19507) running on Windows 10 giving error:
|
Trying to get Traefik to work, I was able to set "COMPOSE_CONVERT_WINDOWS_PATHS=1" in a ".env" file (same directory location as docker-compose.yml) and "/var/run/docker.sock:/var/run/docker.sock" as a volume in the docker-compose.yml file. Loading the volume was failing until I added the .env file with the property as mentioned above. Win10 Docker for Windows: Docker Compose: |
So is this bug just marked as, "we don't care".....I'm on Stable Docker [18.06.1-ce-win73 (19507)] and still having this issue, why do I have to set this variable on Windows? If its just a stupid workaround only for windows, why is it not default? I have been trying to get Traefik to work for days now and finally discovered this stupid ENV variable.... Please change and add automated regression testing to ensure it does not come back. |
The fix is already available on the edge channel, and will be on the stable channel once the next version of Docker (18.09.0) reaches GA. If you want to stay on the stable channel but still want the fix, you can also download the latest Compose RC. |
Using this metioned solutions in last docker version in windows 10: |
Hey Shin, I've tried it and I'm still getting the same error. ** Windows 10 Pro |
I tried using
But I get this
This is how I am running jenkins
And docker-compose
|
Hi, In order to make this work I need to setup To work on both - windows-git-bash and linux I used this workaround
|
@LiborVilimekMassive, |
Still having the error here, on Windows Server 2019 (
None of the Still getting
With this docker-compose.yml:
And this
|
Replacing
|
Did you solve it? |
@tehffs Were you able to find a workaround? I am trying to do the same thing on Windows Server 2019 with Traefik |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Should be able to bind mount the docker socket as explained
in http://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/ using docker-compose
Actual behavior
I can successfully run the command
But when I try to use within a
docker-compose.yml
file I get the following errorInformation
Docker Community Edition
docker-compose.yml
Running
docker-compose up
gives the following errorSteps to reproduce the behavior
docker-compose up
using abovedocker-compose.yml
The text was updated successfully, but these errors were encountered: