Conair

9

Click here to load reader

description

DIY opinionated Docker

Transcript of Conair

Page 1: Conair

DIY Opinionated Docker

Conair

Page 2: Conair

Less configuration more convention

● Archlinux● Btrfs● Systemd

Conair

Page 3: Conair

● systemd-networkd● systemd-nspawn

Systemd

Page 4: Conair

● systemd-networkd● bridge: nspawn0 (DHCPServer)● veths (DHCPClient)

Network

Page 5: Conair

● Subvolumes● Snapshots

Btrfs

Page 6: Conair

IMAGES=/var/lib/conair/images/basepacstrap -i -c -d $IMAGES base

Base Image

Page 7: Conair

● Create Veths - Join Bridge● Boot Container (systemd)● Name Machine (machinectl)

Nspawn

Page 8: Conair

Setup env: conair init

Docker Verbs: conair attach, commit, images, ps, rm, rmi, run

Systemd Status: conair status <container>

Conair

Page 9: Conair

● Fun● Systemd integration● Multiple services in containers

but only one process manager● All CoreOS components in a

container○ Docker, Etcd, Fleet, Systemd

Why?