resin-io/boot2docker-arm

Name: boot2docker-arm

Owner: Resin.io

Description: Lightweight Linux for Docker

Created: 2014-04-18 23:38:58.0

Updated: 2017-10-05 07:01:36.0

Pushed: 2014-04-17 03:56:45.0

Homepage:

Size: 409

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

boot2docker

boot2docker is a lightweight Linux distribution based on Tiny Core Linux made specifically to run Docker containers. It runs completely from RAM, weighs ~24MB and boots in ~5s (YMMV). The ISO can be download here.

boot2docker Demo Video

See Frequently asked questions for more details.

Features
Installation
Installation using the boot2docker manage script
OSX
ew update
ew install boot2docker
Linux/Unix (works also on OSX)
rl https://raw.github.com/boot2docker/boot2docker/master/boot2docker > boot2docker
mod +x boot2docker
Installing by hand

You can also use the boot2docker.iso and make your own virtual machine, or install on physical hardware.

Please remember to give the VM/hardware at least 512MB RAM - and you will need more if you want to do docker development on boot2docker.

How to use

boot2docker comes with an init script that leverages VirtualBox's VBoxManage. You can start, stop and delete the VM right from the command line.

Initialize
ot2docker init
Start vm
ot2docker up
Advanced usage
Port forwarding / folder sharing

In order to use this features refer to this workarounds

Customize

You can customise the values of VM_NAME, DOCKER_PORT, SSH_HOST_PORT, VM_DISK, VM_DISK_SIZE, VM_MEM and BOOT2DOCKER_ISO by setting them in $HOME/.boot2docker/profile

Persist data

When you run boot2docker init, the boot2docker manage script auto-creates a disk that will be automounted and used to persist your docker data in /var/lib/docker and /var/lib/boot2docker. This virtual disk will be removed when you run boot2docker delete. It will also persist the SSH keys of the machine.

If you are not using the boot2docker VirtualBox manage script, you can create an ext4 formatted partition with the label boot2docker-data (mkfs.ext4 -L boot2docker-data /dev/sdX5) to your VM or host, and boot2docker will automount it on /mnt/sdX and then softlink /mnt/sdX/var/lib/docker to /var/lib/docker.

SSH into VM
ot2docker ssh

boot2docker auto logs in, but if you want to SSH into the machine, the credentials are:

: docker
: tcuser
Install on any device

To 'install' the ISO onto an SD card, USB-Stick or even empty hard disk, you can use dd if=boot2docker.iso of=/dev/sdX. This will create the small boot partition, and install an MBR.

Build your own boot2docker.iso

Goto How to build for Documentation on how to build your own boot2docker ISO's.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.