News for hackers. Stuff that matters.
Re:Docker for Mac M1 RC by skohan on Friday March 19, 2021 @08:29AM (#26512493)
How does it work with local directories? Is there a separate file system for WSL, or does the linux kernel translate windows fs paths or something?
Re:Docker for Mac M1 RC by H12 on Friday March 19, 2021 @08:38AM (#26512558)
It's a separate filesystem, but from WSL you can access Windows files in mounted drives via the `/mnt/<drive letter>` directory.
Re:Docker for Mac M1 RC by dboreham on Friday March 19, 2021 @12:33PM (#26515349)
And vice versa: linux home dir is at something like \\wsl$\ubuntu\home\username
Re:Docker for Mac M1 RC by tw04 on Friday March 19, 2021 @08:41AM (#26512587)
Yes, there is a separate filesystem for WSL, but you can still traverse the Windows filesystem as well, including mounting external drives. You can also browse the linux filesystem from windows explorer as expectded.

https://docs.microsoft.com/en-us/windows/wsl/compare-version...

https://devblogs.microsoft.com/commandline/access-linux-file...

https://community.openbiox.org/d/72-windows-subsystem-for-li...

Re:Docker for Mac M1 RC by radicalbyte on Friday March 19, 2021 @08:39AM (#26512576)
It's the same filesystem with some kind of translation/adapter. I love it because it makes supporting our multi-platform OSS projects easy.

You do have the occasional issues regards line endings; that's the only negative I've had so far.

EDIT: H12 is more accurate. The Linux OS is separate, but the Windows FS is mounted to a logical place and "just works".

Re:Docker for Mac M1 RC by skohan on Friday March 19, 2021 @10:12AM (#26513544)
Yes line endings for configuration files was one of the issues we ran into