boot2docker — Lightweight Linux for Docker

Boot2Docker is a lightweight Linux distribution made specifically to run Docker containers. It runs…

boot2docker together with VirtualBox Guest Additions

--

docker run -i -t -v /Users/mattes/project1:/data/project1 ubuntu /bin/bash

As of Docker version 1.3 the work-around described in this blog post becomes obsolete.

Please read more here: https://blog.docker.com/2014/10/docker-1-3-signed-images-process-injection-security-options-mac-shared-directories

brew install docker
brew install boot2docker
Trying to set “Auto-mount” to “yes” DOESN’T WORK for me, unfortunately. I had to add the following.
# this does not work for me
$ docker run -i -t --rm mattes/boot2docker-vbga > boot2docker.iso
# this works...
$ docker run -i -t --rm mattes/boot2docker-vbga /bin/bash
# and then in another shell:
$ docker cp <Container-ID>:boot2docker.iso boot2docker.iso
$ boot2docker stop
$ mv ~/.boot2docker/boot2docker.iso ~/.boot2docker/boot2docker.iso.backup
$ mv boot2docker.iso ~/.boot2docker/boot2docker.iso
$ VBoxManage sharedfolder add boot2docker-vm -name home -hostpath /Users
$ boot2docker up
$ boot2docker ssh "ls /Users"
Guest
Shared
mattes
docker run -i -t -v /Users/mattes/project1:/data/project1 ubuntu /bin/bash

--

--

boot2docker — Lightweight Linux for Docker
boot2docker — Lightweight Linux for Docker

Published in boot2docker — Lightweight Linux for Docker

Boot2Docker is a lightweight Linux distribution made specifically to run Docker containers. It runs completely from RAM, is a small ~24MB download and boots in ~5s (YMMV).

Responses (3)