This recipe lets you run Docker-in-Docker, with a twist. Instead of nesting containers, it runs a virtual machine within Docker, and it uses boot2docker to run Docker within that virtual machine.
It's using KVM to start the virtual machine, so it is intended for people running Docker on bare metal. Nested virtualization might or might not work, or be just a pipe dream, I don't know.
Clone 'dat repo. Build it. Run in --privileged
mode on a Linux machine
with KVM support. Check the IP address of the container; then you can
connect using:
- SSH on port 22 (user=docker, password=tcuser)
- Docker on port 4243
- VNC on port 5900
If you bind-mount an empty file on /boot2docker.hdd, it will be turned into a 10 GB sparse file and formated as an ext4 filesystem and used as the data volume for boot2docker. If you want something larger/smaller, just format it yourself, and make sure that the label is boot2docker-data.