You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 1, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 1, 2021. It is now read-only.
this plus 111 TCP/UDP, 2049 TCP/UDP are forwarded by virtual box to local host.
I have no problem to mount the share local inside the vm but mounting the share from OSX gives me:
sudo mount -o resvport,vers=3 127.0.0.1:'/var/lib/docker/share' '/Users/ah/tmp/mnt'
mount_nfs: can't mount /var/lib/docker/share from 127.0.0.1 onto /Users/ah/tmp/mnt: No such file or directory
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/64#issuecomment-31993778
.
exporting a share from OS only works if security is set to no - which I only can set with "NFS Manager" - not able to get this configuration in my /etc/exports config:
/Users/ah/SVN-Checkouts/DEV/dev -network 192.168.56.0 -mask 255.255.255.0
@schickling the existing code in in my repository creates an ISO with nfs support but at the moment you have to manuel mount the shares.
@steeve would be nice if the docker remote client could tell the daemon to handle the mounting if the hostpath contains an IP - e.g: docker run -v 192.168.56.1:/var/logs:/var/host_logs:ro ubuntu bash
the CMD option will magically convert the input to docker run -d -p 0.0.0.0::80 -name webserver -v /var/lib/docker/share/809218c9bf1bdfa803dfedb65ef0de83:/app tutum/apache-php /run.sh and will mount the directory and will set the port forwarding #104 .
mount 192.168.56.1:/Users/franz/SVN-Checkouts/DEV/dev /var/lib/docker/share/809218c9bf1bdfa803dfedb65ef0de83
VBoxManage controlvm boot2docker-vm natpf1 zfp8081,tcp,127.0.0.1,8081,0.0.0.0,49154
It expects/User/franz/SVN-Checkouts/ to be exported by the NFS-server on the host
@olalonde Thanks for your script.
Have you seen any improvement using NFS? What is your benchmark?
I used Docker to deploy a Tomcat webapp located in host's folder, but I couldn't see any improvement using NFS. Host would use about 12s to deploy, docker would use 45-120s(usually 60s) with vboxsf, and 32-120s with NFS (usually 60s).
@chouclee to be honest, I can't say I paid much attention to that. The primary reason I'm using NFS is that LevelDB refuses to work with vboxsf. I'd be curious to see some benchmark as well though and optimise the script if possible.
@olalonde Ah, I see. I'm curious because most people say NFS could be 1.3-2x slower than rsync which is almost as fast as native. Anyway, thanks for sharing the script.
I replaced winnfsd by HanWIN nfs server and now it works as expected. It's strange winnfsd was working with vagrant and regular ubuntu. The nfs client is probably different
@douglasmiranda, that looks like the future. I'm gonna give it a shot here soon.
I like that it doesn't try to replace docker-machine so you get the benefits of the latest development on docker-machine. Which is why I had to stop using dinghy. I needed to use the latest version of docker, but dinghy was behind.
I've got issue with boot2docker box when trying this.
If will not connect to my nfs share. In fact it was not able to ping the host after it was restarted. It was able to ping 192.168.99.1 only at first boot up after machine is created. After restarting it was not, although it was accessing internet ok.
Update to latest 1.8.2a of docker-toolbox was the same.
Damn, docker-machine-nfs was easily the best solution. Tried docker-osx-dev but it didn't really install correctly. docker-machine-nfs was a one command thing and it's an instant fix
same here. Already loving docker-machine-nfs just because I can naturally use and feel comfortable with docker-machine vs what some of these other tools do.
Activity
jpetazzo commentedon Jan 9, 2014
Did you consider using the
9pfilesystem?It just requires a TCP connection (no portmapper etc.) and is dead simple to setup on the server side.
See https://gist.github.com/jpetazzo/5668338 for an example (that has to be adapted of course, since the example involves containers).
aheissenberger commentedon Jan 10, 2014
I have not found a 9p Server/Client for OSX
jpetazzo commentedon Jan 10, 2014
Argh, I thought that diod might be available for OSX.
It should be straightforward to compile, but I never tried that (I don't
use OSX). :-(
On Thu, Jan 9, 2014 at 4:54 PM, aheissenberger [email protected]:
@jpetazzo https://twitter.com/jpetazzo
Latest blog post: http://jpetazzo.github.io/2013/12/07/pxe-netboot-docker/
aheissenberger commentedon Jan 10, 2014
I have go it working:
open problems:
/Users/ah/SVN-Checkouts/DEV/dev -network 192.168.56.0 -mask 255.255.255.0
You can find a working new boot2docker which adds the hostonly adaper and the ISO which include the nfs utilities here:
https://github.com/aheissenberger/boot2docker
do not forget to start the nfs client or server inside the VM:
sudo /usr/local/etc/init.d/nfs-server start
sudo /usr/local/etc/init.d/nfs-client start
aheissenberger commentedon Jan 11, 2014
Here is the patch to use it - but the code is not finally cleaned up and you need to rebuid the ISO:
https://github.com/aheissenberger/boot2docker/tree/feature/shared-folder-nfs
aheissenberger commentedon Jan 13, 2014
Here is the link to the bug preventing tiny core to support NAT and hostonly in a VM:
https://bugs.busybox.net/show_bug.cgi?id=6788
my code above contains the fix already
schickling commentedon Jan 14, 2014
Thanks a ton for your efforts @aheissenberger !
aheissenberger commentedon Jan 14, 2014
@schickling the existing code in in my repository creates an ISO with nfs support but at the moment you have to manuel mount the shares.
@steeve would be nice if the docker remote client could tell the daemon to handle the mounting if the hostpath contains an IP - e.g:
docker run -v 192.168.56.1:/var/logs:/var/host_logs:ro ubuntu bashschickling commentedon Jan 20, 2014
@aheissenberger Will you open a PR with your NFS settings?
kainz commentedon Jan 21, 2014
I made diod work in OSX, see #89, and https://github.com/kainz/diod.
aheissenberger commentedon Jan 23, 2014
Finished - sharing a directory from the host to a container in a VM works:
the CMD option will magically convert the input to
docker run -d -p 0.0.0.0::80 -name webserver -v /var/lib/docker/share/809218c9bf1bdfa803dfedb65ef0de83:/app tutum/apache-php /run.shand will mount the directory and will set the port forwarding #104 .It expects
/User/franz/SVN-Checkouts/to be exported by the NFS-server on the hostYou will need my ISO with NFS installed, 2nd host only interface and my
./boot2dockerscript with the./boot2docker cmdoptionhttps://github.com/aheissenberger/boot2docker
ToDO:
[ ] more testing
[ ] there is no clean up of the mounted volums after the container gets stopped
vincentbernat commentedon Jul 2, 2014
Will this eventually be merged to boot2docker?
mitar commentedon Jul 11, 2014
+1
sreuter commentedon Jul 17, 2014
+1
g12n commentedon Jul 17, 2014
+1
71 remaining items
chouclee commentedon Jun 9, 2015
@olalonde Thanks for your script.
Have you seen any improvement using NFS? What is your benchmark?
I used Docker to deploy a Tomcat webapp located in host's folder, but I couldn't see any improvement using NFS. Host would use about 12s to deploy, docker would use 45-120s(usually 60s) with vboxsf, and 32-120s with NFS (usually 60s).
olalonde commentedon Jun 9, 2015
@chouclee to be honest, I can't say I paid much attention to that. The primary reason I'm using NFS is that LevelDB refuses to work with vboxsf. I'd be curious to see some benchmark as well though and optimise the script if possible.
chouclee commentedon Jun 9, 2015
@olalonde Ah, I see. I'm curious because most people say NFS could be 1.3-2x slower than rsync which is almost as fast as native. Anyway, thanks for sharing the script.
vincepri commentedon Jun 23, 2015
I am using https://github.com/dduportal/boot2docker-vagrant-box that seems to fix all the crazy issues I was having with boot2docker. I am not sure why Vagrant + NFS is much faster that NFS on official boot2docker though.
I set it up making it on the same IP address of boot2docker and using the same certs path.
heyyoyo commentedon Jul 4, 2015
Anyone achieved success to mount a Windows NFS folder from boot2docker vm with the NFS Windows server WinNFSd ?
I'm using this version : https://bitbucket.org/yannschepens/winnfsd-new
After starting the nfs-client,
Everytime I tried to mount my Windows folder I have this error:
pmap_getmaps.c: rpc problem: RPC: Procedure unavailable
mount: RPC: Unable to receive; errno = Connection refused
mount: mounting 10.0.0.1:/c/web on /var/www failed: Bad file descriptor
But I could see WinNFSd is seeing the request because it logs:
PORTMAP NOTIMP
heyyoyo commentedon Jul 5, 2015
I replaced winnfsd by HanWIN nfs server and now it works as expected. It's strange winnfsd was working with vagrant and regular ubuntu. The nfs client is probably different
ain commentedon Sep 1, 2015
👍 for a consistent fix. It's a killer for the whole concept, esp. on large projects.
douglasmiranda commentedon Sep 17, 2015
Has anyone tried this? https://github.com/adlogix/docker-machine-nfs
squaresurf commentedon Sep 18, 2015
@douglasmiranda, that looks like the future. I'm gonna give it a shot here soon.
I like that it doesn't try to replace
docker-machineso you get the benefits of the latest development ondocker-machine. Which is why I had to stop using dinghy. I needed to use the latest version of docker, but dinghy was behind.douglasmiranda commentedon Sep 19, 2015
Just a feedback about docker-machine-nfs.
It works beautifully :D
mikzalais commentedon Sep 23, 2015
I've got issue with boot2docker box when trying this.
If will not connect to my nfs share. In fact it was not able to ping the host after it was restarted. It was able to ping 192.168.99.1 only at first boot up after machine is created. After restarting it was not, although it was accessing internet ok.
Update to latest 1.8.2a of docker-toolbox was the same.
olalonde commentedon Sep 30, 2015
@mikzalais maybe try this script: https://gist.github.com/olalonde/74de9d053448b977f77e ?
intellix commentedon Oct 4, 2015
Damn, docker-machine-nfs was easily the best solution. Tried docker-osx-dev but it didn't really install correctly. docker-machine-nfs was a one command thing and it's an instant fix
georgediaz88 commentedon Oct 7, 2015
same here. Already loving
docker-machine-nfsjust because I can naturally use and feel comfortable withdocker-machinevs what some of these other tools do.