-
Notifications
You must be signed in to change notification settings - Fork 100
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
Improve configuration/clean-up of the /etc/exports file #24
Comments
Using the whole network should do the trick. Here is what I use manually: # /etc/exports
"/Users/Ogi" -alldirs -mapall=Ogi -network 192.168.99.0 -mask 255.255.255.0 |
@ogizanagi Can you elaborate what this does, and how it improves it all? |
It'll allow you to not care about docker-machine ip, which would be in the whole |
@ogizanagi Ok I see. That could indeed be much easier approach. What are the downsides according to you, if any? |
Actually I don't know any downside, but I'm not a system expert :) |
Thanks for the article. I'll investigate the -network option. Now I'm almost done with #17 , which automatically adds a solution for this too. |
For what it's worth adding an entire C class (even private) subnet isn't such a great idea for some use cases. For example my organisation uses the entire private ranges up, 192., 10. and 172.* (a large university). So if the default sharing behaviour was this wide it could open up a share far too much for developers who don't understand networking very well. Also it seems like docker-machine doesn't seem to change the ip between restarts, even though it warns you it might. Even destroying the vm and creating a new one seems to reuse the same ip every time. |
That's what I was afraid off.
Unfortunately that's not the case :( ! Assume you created and start a 'machine', you will be default get the ip 192.168.99.100 . If you create and start another machine, it will get 192.168.99.101. If now you stop both, and you first start the second created machine, it will now get the ip 192.168.99.100 . I got this a lot but found a work around while reading issue docker/machine#1709:
|
The configuration and cleanup of the /etc/exports file should be improved. Using the technique of Vagrant could be a good approach:
We should probably use the docker-machine name and would be something like:
Things to keep in mind:
The text was updated successfully, but these errors were encountered: