-
Notifications
You must be signed in to change notification settings - Fork 149
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
Path error on Docker for Windows from MINGW #14
Comments
Thanks for sharing your solution. |
no worries - after a little more reading I suspect I might be able to put something together that uses the results of |
I think an additional script like |
sure. I updated https://gist.github.com/rwb27/9074ac87cac705eb70d390447690b25f to switch automatically, but I agree a separate script might be easier. |
I like to run my things from Bash on Windows, and mingw is a convenient way to do this. However, the
dockercmd.sh
script fails when used this way, with an error:invalid mount config for type "bind": invalid mount path:
The reason for this is that mingw makes the results of
pwd
look unix-ey by converting the standard WindowsC:\
into/c/
which, in turn, confuses Docker for Windows. The attached bash script fixes that usingsed
. It's not beautiful, but it works for me. I don't know if there is a reliable way to detect this issue and use the workaround automatically, but I thought I'd share it in the event that others have the problem.I have to say, latex in Docker is fab - it has saved me a great deal of faffing around today!
I can't upload the script but I've made a gist and pasted the line below:
(I didn't seem to need the user stuff on Windows - and I'm not sure what the purpose is of the
exec
but that's probably just my ignorance...)The text was updated successfully, but these errors were encountered: