-
Notifications
You must be signed in to change notification settings - Fork 1.3k
NFS support instructions added to README #828
Conversation
Thanks! For reference; this came up in #817 (comment) and I suggested creating a pull-request (in case it's helpful to other users) |
README.md
Outdated
- Then add the following content to that script. | ||
|
||
``` | ||
#/bin/bash |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I don't think there is a default IP for boot2docker. Using 192.168.59.103 is the boot2docker VM IP Also check out this script I wrote to automate the process of patching boot2docker with NFS. |
+1 |
Good call @mattes I went ahead and added those comments! Do you want to add a pull request for incorporating your automation script for the patch after/if this pull request gets merged? If you'd rather me attempt to incorporate it into this one, that works for me too! |
@chiedojohn if you have time, yes, please go ahead! :-) |
No problem @mattes. I went ahead and simplified in for the boot2docker use case without docker-machine. I gave it a few tests runs and it seems to work A-OK. To all concerned, let me know if you want me to update any of my documentation style, where I placed the scripts or anything like that. |
scripts/enable_nfs.rb
Outdated
) | ||
|
||
# Ip addr for vboxnet | ||
vboxnet_ip = '192.168.59.3' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@mattes sounds good! I went ahead and made it dynamic. I'll be honest though in saying that I don't fully understand where that IP address is coming from... but I guess that's OK. |
Hey @chiedojohn , if you are interested in this you should ping me about possibly helping with docker/machine#793 ... |
@nathanleclaire good suggestion, forgot that machine was also working on this! |
@thaJeztah Well, I should be clear that it's my pet PR and it's not on the official roadmap. But if the users want it, let it be known! |
@nathanleclaire I've seen many requests in this area. Just think that many people are used to boot2docker and haven't really looked at "machine" yet 😄 So anyone wanting this; join @nathanleclaire on his mission :) |
@nathanleclaire pinging you now :) |
@chiedojohn Good start, but running into ownership mismatch. As you can see, in Docker, the /Users directory has my local directory with ownership 501:20. When I run the same command on my local machine, the same directory has ownership mdoo:staff. Fine. However,
|
Hey @tuzonghua, I just made an update to the script that may fix the problems you're having. In your /etc/exports though change |
@chiedojohn Thanks! Worked perfectly. I had previously tried |
Update enable_nfs.rb for (even) better NFS performance
Did anyone successfully used the nfs-client from boot2docker with the Windows NFS server WinNFSd ? |
I was able to get boot2docker to use NFS on OSX with the following steps. It's very possible I'm missing something important but if not, it would be great if you merged this!