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

Dinghy nfs volume permissions are super convenient - similar behavior on Linux host without nfs? #191

Open
gkop opened this issue Jun 15, 2016 · 4 comments

Comments

@gkop
Copy link

gkop commented Jun 15, 2016

Thanks for dinghy! It's awesome for development on Mac :)

Going out on a limb here - I switched from a Mac host to Debian, and am missing the behavior of my dinghy setup where when my docker container process running as root creates a new file in a volume shared from the host, that file shows up on the host with the permissions of the host user. (On Linux, it gets root permissions)

Maybe some Dinghy users are on a team with Linux people? How do your Linux colleagues solve this problem?

@codekitchen
Copy link
Owner

Heh yes, we have a half dozen or so devs using Linux laptops. I wish I had a good answer, it's still a thorny problem for us. So far we've had to tweak each project to work on Linux as it's come up, by doing things such as hard-coding the UID inside the image, and then chown'ing the dev's local repo to match. See for example https://github.com/instructure/canvas-lms/blob/stable/doc/development_with_docker.md#troubleshooting

I'd love to hear from anybody else who has dealt with this, as well.

@dmitrym0
Copy link

dmitrym0 commented Jun 27, 2016

Have you seen this? Using --userns-remap to map a UID inside the container with a real user. Thoughts?

@paolomainardi
Copy link

@dmitrym0 that flag is not compatible with volumes, so quite useless.

@dmitrym0
Copy link

dmitrym0 commented Aug 2, 2016

@paolomainardi I'm not sure I understand. The flag allows to map container UID to a host UID. Docker then writes files out to the host with the specified UID.

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

No branches or pull requests

4 participants