Hands On Docker Workshop

13

Click here to load reader

description

These are the slides for the hands on docker workshop held on the 24th of Oct.

Transcript of Hands On Docker Workshop

Page 1: Hands On Docker Workshop

Docker workshop

Joern Barthel

Berlin, 24.10.2014

Page 2: Hands On Docker Workshop

2

About us > 30 IT consultants

Offices in Berlin & Warsaw

Core areas of expertise Cloud consulting and change management Architecture and Development Operations

Berlindevopsdays 2014

Page 3: Hands On Docker Workshop

3

Setup Virtualbox + Linux

Vagrant

Git

Clone the repo (http://bit.ly/1wnMXHn) and vagrant up

Does NFS work? Otherwise unzip repo to ~/share …

Berlindevopsdays 2014

Page 4: Hands On Docker Workshop

4

Introduction to Docker Go client/server

Userland virtualization

Vastly different scope

Abstract vs. concrete

No concept of changing state from A to B

Berlindevopsdays 2014

Page 5: Hands On Docker Workshop

5

Components Build

Dockerfiles = series of command Immutable images = snapshots of state Commands and context Relationships and unions Caching

Distribute

Run

Berlindevopsdays 2014

Page 6: Hands On Docker Workshop

6

Components Build

Distribute Naming images Push and pull to/from repositories Only transfer images the client does not know about

Run

Berlindevopsdays 2014

Page 7: Hands On Docker Workshop

7

Components Build

Distribute

Run Container process R/W image

Berlindevopsdays 2014

Page 8: Hands On Docker Workshop

8

Architecture

Berlindevopsdays 2014

Page 9: Hands On Docker Workshop

9

Architecture Exec drivers

Namespaces & SELinux

Filters and bridges

Berlindevopsdays 2014

Page 10: Hands On Docker Workshop

10

Architecture Storage drivers

CoW: btrfs Union: aufs Hardcopies

Berlindevopsdays 2014

Page 11: Hands On Docker Workshop

11

Separation of roles Running containers

Naming stuff Linking containers Beyond linking

Mapping filesystems

Mapping ports

Restricting resources

Berlindevopsdays 2014

Page 12: Hands On Docker Workshop

12

CoreOS systemd: greedy pid 1

Socket Activation Journal Watchdogs Encryption, quotas, automounting D-Bus

btrfs: 5th generation fs

dockerd

etcd, locksmithd & fleetd

Berlindevopsdays 2014

Page 13: Hands On Docker Workshop

13

Hands on

Berlindevopsdays 2014