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

Andrew T. Baker - Demystifying Docker

Andrew T. Baker - Demystifying Docker

Docker was one of last year’s most talked about open source projects - but what is it? And what does it mean for deploying applications? This talk will explain what Docker is and where it fits in with other deployment techniques. Attendees will learn the fundamentals of Docker, see some practical examples of how Docker is used, and consider if Docker could be a useful addition to their platform.

https://us.pycon.org/2015/schedule/presentation/417/

wolever-test

April 18, 2015
Tweet

More Decks by wolever-test

Other Decks in Programming

Transcript

  1. Andrew T. Baker Andrew T. Baker Software developer Blog: Twitter:

    Docker Hub: http://www.andrewtorkbaker.com @andrewtorkbaker atbaker
  2. Today Today What is Docker? Docker in practice Docker's past,

    present, and future Trying it yourself Questions
  3. Docker.com says Docker.com says Docker is an open platform for

    developers and sysadmins to build, ship, and run distributed applications.
  4. Less portable, Less portable, minimal overhead minimal overhead Most portable,

    Most portable, lots of overhead lots of overhead Manual configuration Traditional VMs CM tools Docker
  5. Dockerfiles Dockerfiles # Set the base image to Ubuntu FROM

    ubuntu # Update the repository sources list RUN apt-get update # Install MongoDB package (.deb) RUN apt-get install -y mongodb-10gen # Create the default data directory RUN mkdir -p /data/db # Expose the default port EXPOSE 27017 # Default command to start the database CMD ["usr/bin/mongod", "--port 27017"]
  6. 2014 2014 Get to 1.0 (production-ready) Establish partnerships Round out

    some rough edges (v1.3) 2015 2015 Make Docker easier to use Popularize best practices for scaling "Include more batteries"
  7. 1 1 Go all in on a Go all in

    on a non-essential service non-essential service (avoid using Docker for just development)
  8. 2 2 Use the official Use the official base images

    base images (but don't be afraid to build your own)
  9. 4 4 Keep an eye on docker- Keep an eye

    on docker- machine and docker-swarm machine and docker-swarm
  10. 5 5 Check out my tutorial Check out my tutorial

    http://docker.atbaker.me http://docker.atbaker.me
  11. Questions? Questions? Tutorial: Blog: Twitter: http://docker.atbaker.me http://www.andrewtorkbaker.com @andrewtorkbaker Thanks to

    these people who answered questions and gave me feedback for this talk: (Docker) (Twilio) dev team The dev team 's Python team Jérôme Petazzoni Matt Makai The Motley Fool TrackMaven Excella Consulting