Follow along : slides.com/shrikrishna/docker-2/live

Source: docker.io

Docker

  • Application Sandbox
  • Cross Platform
  • Lightweight
  • Intuitive

Source: xkcd.com/1168

Goals

  • Abstract infrastructure
  • Reduce conflict between sysadmins and developers

Source: xkcd.com/705

Ecosystem

  • Docker Daemon
  • Docker Client
  • Docker Hub / Registry
  • Docker Images
  • Docker Containers
  • Dockerfile
  • Compose
  • Swarm

Source: xkcd.com/1636

Versus

Layers

  • Copy-on-write filesystem
  • Multiple read-only layers
  • Shared between running containers
  • Ephemeral layer at the top

Rails App Container

Docker Commands

Source: xkcd.com/196

Cheatsheet Yo!

  • run
  • ps
  • inspect
  • top
  • diff
  • images
  • commit
  • history
  • push
  • events

Dockerfile

  • Description Language for building Docker images
  • Akin to Makefile/Vagrantfile
  • Caching

Compose

  • YML Spec
  • App as a collection of Services
  • Automation

Source: xkcd.com/1319

Networking

  • SDN - Software Defined Networking
  • Single Host / Bridge
  • Multi Host / Overlay

Overlay Network

Swarm

  • Node
  • Services And Tasks
  • Load Balancing

Ecosystem

  • Kubernetes, Marathon/Mesos
  • AWS ECS, GCE
  • Rancher, CoreOS
  • Flocker (ClusterHQ), Weave

Obligatory Shameless Plug

sigalrm.io

Thank you

GDG Oct'16

By shrikrishna

GDG Oct'16

  • 762