Download - Docker Workshop
Docker workshop
Joern Barthel
Warsaw, 26.09.2014
2
About us > 30 IT consultants
Offices in Berlin & Warsaw
Core areas of expertise Cloud consulting and change management Architecture and Development Operations
Warsawdevopsdays 2014
3
Setup Virtualbox + Linux
Vagrant
Git
Clone the repo and vagrant up
Warsawdevopsdays 2014
4
Introduction to Docker Go client/server
Userland virtualization
Vastly different scope
Abstract vs. concrete
No concept of changing state from A to B
Warsawdevopsdays 2014
5
Components Build
Dockerfiles = series of command Immutable images = snapshots of state Commands and context Relationships and unions Caching
Distribute
Run
Warsawdevopsdays 2014
6
Components Build
Distribute Naming images Push and pull to/from repositories Only transfer images the client does not know about
Run
Warsawdevopsdays 2014
7
Components Build
Distribute
Run Container process R/W image
Warsawdevopsdays 2014
8
Architecture
Warsawdevopsdays 2014
9
Architecture Exec drivers
Namespaces & SELinux
Filters and bridges
Warsawdevopsdays 2014
10
Architecture Storage drivers
CoW: btrfs Union: aufs Hardcopies
Warsawdevopsdays 2014
11
Separation of roles Running containers
Naming stuff Linking containers Beyond linking:
Mapping filesystems
Mapping ports
Restricting resources
Warsawdevopsdays 2014
12
CoreOS systemd: greedy pid 1
Socket Activation Journal Watchdogs Encryption, quotas, automounting D-Bus
btrfs: 5th generation fs
dockerd
etcd, locksmithd & fleetd
Warsawdevopsdays 2014
13
Hands on
Warsawdevopsdays 2014