Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Doing Awesome Things With Docker

Avatar for Brian Goff Brian Goff
September 15, 2014

Doing Awesome Things With Docker

Avatar for Brian Goff

Brian Goff

September 15, 2014

Other Decks in Programming

Transcript

  1. • User since October 2013 • Docker employee June 2014

    • Maintainer of Docker open source project • Have used Docker in production envs • Am an introvert That’s me!
  2. What is Docker? Deploy Everything • Webapps • Backends •

    SQL, NOSQL • Big Data • Message Queues • … and more
  3. What is Docker? Deploy most Everywhere • Linux Servers •

    VM’s or Bare metal • EC2, GCE, IBM, Azure, <insert IaaS or vps> • Any distro (with some kernel requirements) • (some success on ARM)
  4. What is Docker? Deploy Reliably If it works on your

    laptop, it works… Everywhere… • Production • Contributors laptop • Scaled across a cluster
  5. What is Docker? Linux Containers - Like a light-weight VM

    • Own process space • Own network interface • Can run stuff as root • Limit CPU/RAM/disk • Share kernel with host • No device emulation (or HVM or PV) • limit root capabilities inside container Demo!
  6. What is Docker? Ecosystem - Docker Hub • Over 30,000

    “Dockerized” applications • Private Repos • Automatic Builds • Webhooks • Like GitHub, for Docker
  7. Building an image • Like git commits (but not) •

    Uses Copy-on-Write filesystem Dockerfile
  8. Boot2Docker • Minimal Linux distro (~27MB ISO!) • Boots in

    5 seconds • Has installer for seemless local/dev env in VM • Has a Dockerfile
  9. Docker Restart Policies • Added in Docker 1.2 • Monitor

    container health • More efficient than external monitoring • always • on-failure • never
  10. Rails Demo github.com/cpuguy83/docker-rails-dev-demo • Optimized for building in docker •

    Optimized shipping as an image • Do development, run tests, put in prod • With the same exact image
  11. What is Docker? A tool • For developers • For

    sysadmins • For building systems • For change
  12. Doing awesome things with Docker! ! Brian Goff, Docker Inc

    @cpuguy83 container42.com Questions?