A toolkit for building secure, portable and lean operating systems for containers
Go to file
Tycho Andersen ae423e428b selinux: add readme
Signed-off-by: Tycho Andersen <tycho@docker.com>
2017-03-21 12:08:14 -06:00
base Remove unused alpine-base image 2017-03-20 16:15:41 +00:00
docs docs: moby/alpine/kernel/ is now just moby/kernel/ 2017-03-15 15:14:56 +00:00
ebpf Move ebpf to top level 2017-02-01 10:58:52 +00:00
examples Merge pull request #1323 from justincormack/gcp-metadata 2017-03-16 19:24:43 +00:00
kernel kernel: Add initial support for 4.10.x kernels 2017-03-20 13:50:27 +00:00
pkg Out with the old, in with the new Moby 2017-03-06 22:28:41 +00:00
projects selinux: add readme 2017-03-21 12:08:14 -06:00
reports Hyperlink the PR links in weekly report 2017-03-19 17:43:50 +00:00
scripts Fix hyperkit script to use correct command line 2017-03-20 15:51:33 +00:00
test test: Move test-ltp -> ltp 2017-03-21 09:47:42 +00:00
tools We no longer directly convert to initrd, we use Go libraries for this 2017-03-21 11:47:16 +00:00
vendor Add upload to Google Cloud Storage and Google Compute Image creation 2017-03-14 14:45:05 +00:00
.datakitci.json Out with the old, in with the new Moby 2017-03-06 22:28:41 +00:00
.gitignore Output kernel command line to a file in the kernel+initrd output case 2017-03-20 13:43:09 +00:00
config.go Fix accidental removal of /etc/mtab from images 2017-03-20 23:27:37 +00:00
gcp.go GCP image handling enhancements 2017-03-16 13:20:21 +00:00
main.go Output kernel command line to a file in the kernel+initrd output case 2017-03-20 13:43:09 +00:00
Makefile Teach make clean about more cleanliness 2017-03-21 13:42:51 +00:00
moby.yaml Clean up apk cache in init 2017-03-16 19:14:08 +00:00
output.go Output kernel command line to a file in the kernel+initrd output case 2017-03-20 13:43:09 +00:00
README.md Improve README 2017-03-19 20:32:16 +00:00
vendor.conf Add upload to Google Cloud Storage and Google Compute Image creation 2017-03-14 14:45:05 +00:00

Moby

Moby, a toolkit for building custom minimal, immutable Linux distributions.

  • Good, secure defaults included
  • Everything is replaceable and customisable
  • Immutable infrastructure applied to building Linux distributions
  • Completely stateless, but persistent storage can be attached
  • Easy tooling, with easy iteration
  • Built with containers, for running containers
  • Designed for building and running clustered applications, including but not limited to container orchestration such as Docker or Kubernetes
  • Designed from the experience of building Docker Editions, but redesigned as a general purpose toolkit
  • Designed to be managed by external tooling, such as Infrakit or similar tools
  • Includes a set of longer term collaborative projects in various stages of development to innovate on kernel and userspace changes, particularly around security

Getting Started

Build

Simple build instructions: use make to build. This will build the Moby customisation tool and a Moby initrd image.

Build requirements

  • GNU make
  • GNU or BSD tar (not busybox tar)
  • Docker

Booting and Testing

  • make qemu will boot up a sample Moby in qemu in a container
  • on OSX: make hyperkit will boot up Moby in hyperkit
  • make test or make hyperkit-test will run the test suite
  • There are also docs for booting on Google Cloud
  • More detailed docs will be available shortly, for running single hosts and clusters.

Customise

To customise, copy or modify the moby.yaml to your own file.yaml or use on of the examples and then run ./bin/moby file.yaml to generate its specified output. You can run the output with ./scripts/qemu.sh or ./scripts/hyperkit.sh, or on other platforms.

Yaml Specification

The Yaml format is loosely based on Docker Compose:

  • kernel specifies a kernel Docker image, containing a kernel and a filesystem tarball, eg containing modules. mobylinux/kernel is built from kernel/
  • init is the base init process Docker image, which is unpacked as the base system, containing init, containerd, runc and a few tools. Built from base/init/
  • system are the system containers, executed sequentially in order. They should terminate quickly when done.
  • daemon is the system daemons, which normally run for the whole time
  • files are additional files to add to the image
  • outputs are descriptions of what to build, such as ISOs.

For the images, you can specify the configuration much like Compose, with some changes, eg capabilities must be specified in full, rather than add and drop, and there are no volumes only binds.

The config is liable to be changed, and there are missing features; full documentation will be available shortly.