-
Notifications
You must be signed in to change notification settings - Fork 167
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
Specifying named docker volume causes includes invalid characters problem #178
Comments
I have similar issue Running a makefile using the "terminal" of IntelliJ using git bash on W10 and Docker desktop. winpty docker run --user 111111:222222 -ti -v "/c/Users/1005xxx/myfolder:/work" containername prototool generate --walk-timeout 30s If I remove winpty the error is the same under IntelliJ. Under bash directly, it is different The ugly alternative for now is to do it directly in a good auld CMD and to forget the makefile |
It's not a winpty issue. MSYS2 automatically converts a Unix-style path to a Windows-style path when executing a non-msys2 program. And it can be controlled by the |
Oh, thanks a lot @k-takata! @odupuy, I don't have the environment any more, would you test it out and let us know please? Basically you need to run the following two commands:
and let us know the results. Thanks |
Thanks folks. I modified my makefile, the variable MSYS... is set, I can see it logged but the error is the same aka docker: Error response from daemon: OCI runtime create failed: invalid mount {Destination:\Programs\Git\work Type:bind Source:/run/desktop/mnt/host/c/Users/1005xxx/myfolder;C Options:[rbind rprivate]}: mount destination \Programs\Git\work not absolute: unknown. $ make --version |
What was the result when you ran |
docker run --rm -ti -v my-vol:/myvol my_volume_test:latest
under Cmd/Powershell, all is good.docker
under Git Bash, I need to prefix the command withwinpty
, that's where the problem comes in:I tried to escape the ':' character, but that didn't work either:
The text was updated successfully, but these errors were encountered: