Setting up NFS share folder using the official boot2docker VM is a lot of work. Thanks to yungsang we have a vagrant box that allows us to do this easily. This Vagrantfile configures a VM that shares your $HOME folder so that you can link your volumes as if your OSX machine was your actual Docker host.
- Only Mac OSX is supported
- Vagrant 1.6+
- Docker client (via homebrew)
export DOCKER_HOST=tcp://localhost:2375
vagrant up
docker run -it --rm -v $HOME:/code ubuntu:latest bash # you can change it to anything under your $HOME as well
MIT