Skip to content
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

docker-desktop: fix bind mounts #117

Merged
merged 1 commit into from
Aug 18, 2022
Merged

Conversation

nzbr
Copy link
Member

@nzbr nzbr commented Jul 11, 2022

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 nzbr added the bug Something isn't working label Jul 12, 2022
@nzbr
Copy link
Member Author

nzbr commented Jul 19, 2022

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 nzbr merged commit 0b29fc7 into nix-community:main Aug 18, 2022
@pogopaule
Copy link

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 #148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants