How to use docker to create a minimal live ISO that runs docker?

3.2k views Asked by At

I'm looking to create a very lightweight live ISO of ubuntu that runs docker. I'd like to be able to create this custom live ISO using a docker container to handle provisioning and all setup steps. Basically, I want to run a Dockerfile that after building/running, outputs a live ISO I could boot from that is setup to run docker within it. Any help is appreciated.

2

There are 2 answers

2
Ricardo Branco On

Well, you can use FAI - Fully Automatic Installation to create an ISO that installs and configure Ubuntu and Docker.

I have created a Docker image (ricardobranco/fai:4.3.3) to create these ISO's. The code at GitHub: https://github.com/ricardobranco777/fai

There are scripts to create the mirror, another to validate it, and to create the ISO. I've just committed a simple FAI config that I use to create ISO's to the faiconfig folder in my GitHub repo

PD: I haven't had success with FAI 5.x and Ubuntu 16 (for some unknown reason at the time). For this reason I use 4.3.3. The maintainer was kind enough to keep the 4.3.3 Debian packages in the FAI repository.

0
Martin Monperrus On

boot2docker can be considered as a minimal ISO that runs docker:
https://github.com/boot2docker/boot2docker