NixOS-WSL icon indicating copy to clipboard operation
NixOS-WSL copied to clipboard

docker-desktop: fix bind mounts

Open nzbr opened this issue 2 years ago • 1 comments

The /mnt mount gets marked as shared in the systemd wrapper script, so that the bind mounts created by the docker desktop proxy are present outside the systemd namespace

See also #89 #90

@hschaeidt

nzbr avatar Jul 11 '22 20:07 nzbr

Can someone verify, that this patch works for people other than me For example docker run --rm -it -v $PWD:/pwd alpine ls -la /pwd should show the contents of the current directory, while listing an empty directory without the patch

nzbr avatar Jul 19 '22 18:07 nzbr

Does not work for me.

❯ docker run --rm -it -v $PWD:/pwd alpine ls -la /pwd
total 4
drwxr-xr-x    2 root     root            40 Oct 24 12:01 .
drwxr-xr-x    1 root     root          4096 Oct 24 12:01 ..

See https://github.com/nix-community/NixOS-WSL/discussions/148

pogopaule avatar Oct 24 '22 12:10 pogopaule