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

Does not work with Docker #35

Closed
eyJhb opened this issue Jan 21, 2021 · 2 comments · Fixed by #39
Closed

Does not work with Docker #35

eyJhb opened this issue Jan 21, 2021 · 2 comments · Fixed by #39

Comments

@eyJhb
Copy link
Contributor

eyJhb commented Jan 21, 2021

If you cd to some dir, that is managed with impermanence, and do

docker run --rm -it -v $(pwd):/src alpine

Then you will get a error like docker: Error response from daemon: error while creating mount source path '/home/eyjhb/projects': mkdir /home/eyjhb/projects: file exists.

This seems to be a problem with the bindfs method, as it worked just fine with symlinks (and works fine if I use the actual dir, not the one it bindfs).

@talyz
Copy link
Collaborator

talyz commented Jan 21, 2021

This probably happens because fuse mounts can't be read by other users by default. You could try to fix this by setting the programs.fuse.userAllowOther to true in your NixOS configuration and removing the --no-allow-other flag given to bindfs. It would be nice to have this configurable and inform about it.

@talyz
Copy link
Collaborator

talyz commented Jan 24, 2021

I've opened #39 to fix this. Please try it out when you have the time :)

@talyz talyz closed this as completed in #39 Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants