On Mac:
$brew install docker
$brew install boot2docker
$ boot2docker stop
$ VBoxManage sharedfolder add boot2docker-vm -name home -hostpath $HOME
$ boot2docker up
$ boot2docker ssh "sudo modprobe vboxsf && mkdir -p $HOME && sudo mount -t vboxsf home $HOME"
You can now run docker -v
transparently as long as the volume is inside $HOME
More tips:http://www.incrediblemolk.com/sharing-a-windows-folder-with-the-boot2docker-vm/
https://github.com/boot2docker/boot2docker/pull/284
No comments:
Post a Comment