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

Allow different nfs options for different mounts #41

Open
rbayliss opened this issue Feb 6, 2016 · 2 comments
Open

Allow different nfs options for different mounts #41

rbayliss opened this issue Feb 6, 2016 · 2 comments

Comments

@rbayliss
Copy link

rbayliss commented Feb 6, 2016

Hey there,
It would be great if it was possible to use different NFS options for different shared folders. For example, I want to share /Users with the standard "-alldirs -mapall=$(id -u):$(id -g)" setup, but I want to share another directory with "-alldirs -maproot=0". This isn't currently possible, as all shared folders share the same options. Any ideas?

@tonivdv
Copy link
Member

tonivdv commented Feb 8, 2016

Hey @rbayliss ,

I guess we could do something like this:

docker-machine-nfs test --shared-folder="/var/www,-alldirs -maproot=0" --nfs-config="-alldirs -mapall=\$(id -u):\$(id -g)"

The --nfs-config would be applied to all shared-folder on which a override config is not given. The override would be given in the --shared-folder config after a e.g. ',' separation ?

@rbayliss
Copy link
Author

Yep, that would definitely do it. Love that it doesn't break BC either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants