13
Docker workshop Joern Barthel Warsaw, 26.09.2014

Docker Workshop

Embed Size (px)

DESCRIPTION

Hands on Workshop about Docker. Workshop held on Day 1 of DevOpsDays Warsaw. Setup and Introduction of Docker.

Citation preview

Page 1: Docker Workshop

Docker workshop

Joern Barthel

Warsaw, 26.09.2014

Page 2: 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

Warsawdevopsdays 2014

Page 3: Docker Workshop

3

Setup Virtualbox + Linux

Vagrant

Git

Clone the repo and vagrant up

Warsawdevopsdays 2014

Page 4: 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

Warsawdevopsdays 2014

Page 5: Docker Workshop

5

Components Build

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

Distribute

Run

Warsawdevopsdays 2014

Page 6: Docker Workshop

6

Components Build

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

Run

Warsawdevopsdays 2014

Page 7: Docker Workshop

7

Components Build

Distribute

Run Container process R/W image

Warsawdevopsdays 2014

Page 8: Docker Workshop

8

Architecture

Warsawdevopsdays 2014

Page 9: Docker Workshop

9

Architecture Exec drivers

Namespaces & SELinux

Filters and bridges

Warsawdevopsdays 2014

Page 10: Docker Workshop

10

Architecture Storage drivers

CoW: btrfs Union: aufs Hardcopies

Warsawdevopsdays 2014

Page 11: Docker Workshop

11

Separation of roles Running containers

Naming stuff Linking containers Beyond linking:

Mapping filesystems

Mapping ports

Restricting resources

Warsawdevopsdays 2014

Page 12: 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

Warsawdevopsdays 2014

Page 13: Docker Workshop

13

Hands on

Warsawdevopsdays 2014