CONTAINERS:
UNDER THE HOOD
Vincent Batts @vbatts
$> finger $(whoami)
Login: vbatts Name: Vincent Batts
Directory: /home/vbatts Shell: /bin/bash
Such mail.
Plan:
OHMAN
$> id -Gn
devel opencontainers docker appc redhat golang slackware
HAN D S- O N:
capabilities
Syscalls
Copy-On-Write (CoW)
Archives
Namespaces
p.s. Don't forget to fill out the surveys!
SO,
WHY, CO NTAINERS?
Single Application
Full System
But Not a VM
Except Maybe a VM
Pods of applications
Labels of services
Non-root
Desktop Applications
OMG AND CATS
https://www.flickr.com/photos/27549668@N03/
But Wait,
What does "container" mean to you?
CAPAB ILITIES
(only on some versions of util-linux)
capabilities(7)
setpriv(1)
capsh(1)
proc(5)
DEMO
GOOD IDEA:
BAD IDEA:
whistling while you work
whistling while you eat
DEMO
SYS CALLS
seccomp(2)
proc(5)
GOOD IDEA:
BAD IDEA:
feeding a stray kitten in the park
feeding a stray kitten in the park to a bear
DEMO
NAM ESPACES
unshare(1)
proc(5)
lsns(8)
GOOD IDEA:
BAD IDEA:
playing catch with your grandpa
playing catch with your grandpa
DEMO
COPY-ON-WRITE ( COW )
lvmthin(7)
btrfs-subvolume(8)
overlayFS
GOOD IDEA:
BAD IDEA:
being served breakfast in bed
being served tennis balls in bed
FS *MAG IC*
shared subtree propogation
GOOD IDEA:
BAD IDEA:
ordering a chili dog to go
ordering a chili dog that makes you go
TAR ARCH IVES
format
tar-split
GOOD IDEA:
BAD IDEA:
Dressing up at Halloween as a pirate
Dressing up at Halloween as a piñata
THAN KS!
VIN CEN T BATTS
@ VBATTS| VBAT TS@ RE DHAT.COM

Containers: Under The Hood (Vincent Batts)