Allows you to mount an local folder into boot2docker which is incredibly useful for
local Docker environment under Mac OSX. So from Mac you do stuff like this:
docker run -v /Users/william/repos/reallysickcode:/code [..]
.
This Dockerfile will download the latest boot2docker image (see FROM boot2docker/boot2docker
)
and adds VirtualBox Guest Additions for your running VirtualBox version.
See also boot2docker/boot2docker#284.
The mount logic is handled with $ROOTFS/etc/rc.d/vbox-guest-additions-permanent-mount
(see Dockerfile.tmpl)
# generate Dockerfile from Dockerfile.tmpl and build it
chmod +x build_docker.sh
./build_docker.sh [full_path_to_mount]