FTW

@joshkurz

Credentials

  • Senior Technical Architect @ Turner
  • Author of Mastering AngularJS Directives
  • Running over 1000 containers in production today.

Introduction

  • Brief Overview of Docker's History
  • Some examples of docker applications
  • Go over some docker commands
  • The Adoption of Docker
  • Docker FTW
  • The Future and Beyond

History Of Docker

  • Chroots
  • Jails
  • Zones
  • cgroups/namespaces and lxc
  • Docker
  • Containers on Windows
  • The Future and Beyond

Chroot

1979

Jail

Zone

LXC

Docker

2000

2005

2006

2013

Demo

  • docker run -it joshkurz/matrix

Docker Commands

  • docker build
  • docker push/pull
  • docker run
  • docker logs
  • docker ps
  • docker start
  • docker stop
  • docker exec
  • docker diff

Image v Container

  • image == static binary
  • container == isolated processes
  • images are immutable
  • containers are ephemeral
  • containerN = new Container(image)

Inspect Matrix

# build the container
docker build .

# run matrix in the background with -d
# allocate tty with -t
docker run -t -d matrix

# execute a command in the container and get a bash shell running
# this gives us access to the internals of the running container
docker exec -it $containerid /bin/bash
touch foobar
exit

# show diff of filesystem
docker diff $containerid

# start new container
docker run -it -d matrix

# show both contianers
docker ps
# stop each container
docker stop $containerid
docker stop $containerid2
# show that both of thier instances are left over and can be restarted
docker ps -a
# remove all containers
docker rm $(docker ps -qa)

Inception Demo

docker build -t joshkurz/docker-ftw-demo
docker run -it -p 3000:3000 joshkurz/docker-ftw-demo

Docker's Adoption

  • Accessability
  • Portability
  • Open Source
  • Community 
  • Marketing

Docker FTW

# run twitter-stream on local
docker run --env-file=test-twitter.secrets joshkurz/twitter-stream

# run dockerftw in production
kubectl create namespace docker-ftw
kubectl apply -f deployment.secrets

Future Of Docker

  • Microsoft Adoption
  • Orchestration battle
  • RKT competitor
  • They have shocked the World thus far and I would never count them out. Docker is a huge power player in the tech world today and is going nowhere anytime soon. 

Thank You

@joshkurz

@dockerftw

@321opensesame

Docker FTW

By joshkurz

Docker FTW

  • 663