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

Docker for more thorough awesomeness

Jade Allen
August 17, 2013

Docker for more thorough awesomeness

Quick overview of Docker - what it is, how to do it, and why it's a good idea. Presented at PyTexas 2013 as a lightning talk.

Jade Allen

August 17, 2013
Tweet

More Decks by Jade Allen

Other Decks in Technology

Transcript

  1. WHAT • Docker is a lightweight virtualization platform. • It

    simplifies deploying applications and services to any platform that supports Docker. • Think of it as a cargo container for your service. • Pack, ship and run your service in a completely isolated environment easily.
  2. WHAT • Docker service written in Golang. • Uses LXC

    and AUFS (a copy-on-write filesystem) for Linux to virtualize process(es). • Virtualization overhead is very low; effectively zero memory/CPU cost above native service. • Completely isolated environment.
  3. HOW 1. After installing docker and its base image, 2.

    git clone https://github.com/mrallen1/dice-service 3. docker build -t dice-service .! 4. docker run -t dice-service! 5. curl -X POST -d'roll=3d6' localhost:<assigned-port>
  4. WHY • Think of it as git for filesystems (push

    and pull primitives) • Makes deploying services to {your own | cloud | PaaS } servers easy and repeatable • Completely isolates your application environment • Faithfully replicates your environment for dev and testing • It's fun!
  5. WHERE • http://docker.io • https://index.docker.io 
 (The CPAN of docker

    images) • https://github.com/dotcloud/docker • https://github.com/mrallen1/dice-service