In short, when running boot2docker through Vagrant, you should add the following three environment variables
- VAGRANT_OSX_MODE="true" for enabling Vagrant-compatibility
- DOCKER_USER_ID=$(id -u) for letting Vagrant use your host user ID for mounted folders
- DOCKER_USER_GID=$(id -g) for letting Vagrant use your host user GID for mounted folders
Grab the images’ sources by following the project link, or run the images using the Docker Hub.