-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
compose on windows, machine on remote linux: incorrect volume escaping #4253
Comments
I'm assuming you're running those commands from Powershell. Please try running the following: Remove-Item Env:\COMPOSE_CONVERT_WINDOWS_PATHS
docker-compose up |
No, this is from the windows command prompt (actually, CMD in ConEmu). But the gist is to unset the environment variable? or set it to 0? From #4240, it seems like 0 is the better choice. |
The solution from #4240 helped me: |
@shin- commented on Dec 16, 2016:
Actually, exactly as @whyleee suggested above, its exactly the opposite. I got exactly the same error, and unsuccessfully tried setting Is it possible to reflect this in the documentation somehow please? Here's my repro with the latest v1.22.0-rc1. The following yaml clause for a bind mount version: '3'
[... snip...]
volumes:
- "/share/Storage/.gitpubkeys:/mnt/keys:ro" results in an unsuccessful
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it had not recent activity during the stale period. |
bump - this should still be open |
any update on this? |
I have a docker host running on esxi, created with docker-machine. I have Docker for Windows installed locally to get docker-compose and docker-machine on my Windows desktop. Then I can use
docker-machine env
to set the relevant environment for compose to work.That all worked fine until I wanted to add an haproxy container from dockercloud, which needs to talk to the host. Their docs say to add this to the docker-compose.yml for the LB.
so that the LB can find the web servers that it is supposed to be balancing.
However when I run
docker-compose up
on my Windows desktop, I get this error:Note there are backslashes here, not forward slashes. So I think that something in docker-compose is incorrectly translating the paths to Windows paths, and then looking at them on Linux, seeing they aren't paths, and complaining that they aren't valid volume names, which is true but unhelpful.
Is there a magic switch to say that the host is not the local windows system and side-step this?
The text was updated successfully, but these errors were encountered: