Boot2docker is a really great tool to run docker on a mac computer, but the default option to share folders is
vboxfs, which can be an issue.
Vboxfs is really slow and you may encounter access and performance issues.
A good solution is to use
nfs to share your folders.
On OSX, run the following comands:
sudo echo "/Users -mapall=`whoami`:staff `boot2docker ip`" | sudo tee -a /etc/exports
sudo nfsd restart
Connect yourself to your boot2docker vm using ssh
Then run the following:
sudo suecho "#! /bin/shsleep 1sudo umount /Userssudo /usr/local/etc/init.d/nfs-client startsudo mount 192.168.59.3:/Users /Users -o rw,async,noatime,rsize=32768,wsize=32768,proto=tcp" > /var/lib/boot2docker/bootlocal.shsudo chmod a+x /var/lib/boot2docker/bootlocal.shexitexit
Now that the above is done, restart your boot2docker vm