-
Notifications
You must be signed in to change notification settings - Fork 287
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
🔗 Support container created symlinks compatibility with Windows host WSL/Bash.exe #2743
Comments
I'm experiencing this issue, and I'd just like to add that using WSL or bash.exe seems to be irrelevant - plain Windows Explorer sees a symlink created in the described manner (from container, on host-bound volume) as a text file which looks something like this:
My use case is very similar to @myuseringithub's: Installing a Yarn workspace (i.e. npm packages) from a container and having the generated links between the projects work from the perspective of an IDE running on the host (mainly so Typescript can resolve cross-project imports). |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
/remove-lifecycle stale |
/lifecycle frozen |
Any update? |
I have the same issue |
after wasting 2 days i decided to look at logs and just realized that ln doesnt work using smb share..... any idea for a fix in the future? |
Same issue, any work around ? |
So frustrating |
I there any upate? |
Hi, I think the limitation is documented somewhat but not elaborated well. And no plans for fixing it seems to exist. Hoping to get clear answers, not references to other issues. Thanks
Issue:
Soft symbolic links created inside Docker containers appear as text files on Windows host machine (either using WSL or Cygwin Bash.exe).
Although the other way around, where symlinks created on the Windows host machine, works inside Docker containers without any issue.
Re-creating the issue
ln -s /<volumePath>/file /<volumePath>/file.symlink
or create relative symlinkcd /<volumePath>; ln -s ./file ./file.symlink
cat /<volumeHostPath>/file.symlink
Results in: Symlink file interpreted as text format ❌
Own conclusions:
It appears that Docker uses special symbolic link files that are interpreted only using
mfsymlinks
option with the newer file sharing protocol SMB 3 between the host machine and the container filesystem. Windows on the other hand doesn't seem to interpret the symlink file format used by Docker (I think its this format), although Windows have a very good support for different symbolic link types.Use case:
node_modules/.bin
symlinks in the container, and running .bin Node modules from the host machine (e.g. on Windows Sybsystem for Linux)Questions:
To be honest I've read a lot of related issues/discussions (Some referenced below), and didn't reach a clear conclusion.
Versions:
The text was updated successfully, but these errors were encountered: