-
Notifications
You must be signed in to change notification settings - Fork 310
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
Invalid mount path when connecting docker from windows to linux #509
Comments
It's actually a duplicate of #489 but I still see this issue with 0.57.0 |
We automatically mount the project folder, but that is not possible when using a Docker daemon running on a different machine / VM. I'm not sure if there is an easy and reliable way to detect this case and not do the mount. (We could just not do it when Workaround is to override the default mount with |
Closing: the user has to define |
Actually this is still an issue. |
The specific issue here that is still outstanding is with the .gitconfig volume mount resulting in an invalid mount point. The mount does not fail anymore (see #489) which reduces the priority of the the main issue (except for on LCOW #29). However, Docker automatically creates a new path on the host to support the .gitconfig volume mount -- which pollutes the remote OS and could have other implications we haven't uncovered yet. For example, on my mac,
The |
This also fails when you're using Docker Desktop on Windows. I would expect for it to work normally there as this is a scenario that is widely used. |
@wmeints If you running into trouble while using Docker locally, then that's a separate issue. Docker for Windows is known to work (I use it every day 😊). If you are using Windows containers (less common), then that's #29. But, if you're running Linux containers, it would be great if you'd raise an issue on it with your log details so we can try to help you sort it out. |
Thanks for the kind reply. I investigated it further and found some really weird behavior. I Will open a separate issue for that. |
Verifier: The fix was to copy the .gitconfig into the container instead of trying to mount it. https://github.com/microsoft/vscode-remote-containers/commit/4f76bf525bc138e8fbc2bbfdc21f19c406e4cefa Verify that the .gitconfig (if it exists in your local home folder) is indeed copied to the container (if it does not exist there yet) when the container is first created (but not later, e.g., after manually deleting it from the container). |
Re #474
The text was updated successfully, but these errors were encountered: