Code Monkey home page Code Monkey logo

debian2docker's Introduction

debian2docker

What is debian2docker

Debian2docker is a hybrid bootable ISO which starts an amd64 Linux system based on Debian. Its main purpose is to run Docker and to allow the execution of containers using Docker.

The ISO is currently about 55 MB and is based on Debian jessie.

How to build

Building debian2docker is quite simple:

docker rm run-debian2docker
docker build -t debian2docker .
docker run -i -t --privileged --name run-debian2docker debian2docker
docker cp run-debian2docker:/debian2docker.iso .

note: the docker cp will complain operation not permitted - presumably as it tries to change the file's ownership to root

How to run

  1. Create a VM.
  2. Add the ISO you've built as a virtual CD/DVD image.
  3. Start the VM
  4. Wait for the system to boot and start using debian2docker.

Linux & qemu/kvm example:

$ kvm -cdrom debian2docker.iso -m 768
# wait for the system to boot and start using debian2docker

The password for the user docker is live.

Goals

debian2docker has the following goals:

  1. Remain minimal - no package installation
  2. Become a new base for boot2docker.
  3. Offer only the minimal tooling required to run Docker and its containers.
  4. Make use of Debian binary packages - avoid lengthy compilation times.
  5. If a package is broken or has problems, it should be fixed upstream and used.

Why Debian?

Debian was chosen because it's a large project and it can be trusted for a few reasons:

  1. Debian packages can be verified and Debian can be trusted.
  2. Debian has been around for a long time and it'll be around.
  3. The toolchain and the process can be simplified by using tooling provided by Debian.
  4. All minimal dependencies to support Docker are already in Debian.
  5. The system can still remain small.
  6. We can still disallow the installation of software in the live environment - NO package installation!
  7. Packages may be customized easily by rebuilding them from sources when needed.
  8. We can build debian2docker in a Debian container running debian2docker.

The goal remains the same: running Docker to run Docker containers.

Features

debian2docker supports the following Docker graph drivers:

  • aufs
  • btrfs
  • devicemapper
  • vfs

AUFS is used by default for partitions formatted with ext4. BTRFS will be used if the storage partition is formatted as btrfs.

Devicemapper and vfs aren't used by default, but the kernel and Docker support these two graph drivers as well.

debian2docker's People

Contributors

unclejack avatar tianon avatar proppy avatar svendowideit avatar nuxlli avatar vieux avatar

Stargazers

Ricardo Luz avatar Gullit Miranda avatar Rogerio Prado de Jesus avatar

Watchers

 avatar Roger Leite avatar Mario Nogueira Ramos avatar James Cloos avatar  avatar

Forkers

slobo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.