Demystifying Docker
Andrew T. Baker
Software developer
About you
Today
-
What is Docker?
-
Docker in practice
-
Docker's past, present, and future
-
Trying it yourself
-
Questions
"It worked in my
development environment"
The promise of Docker:
Build once, run anywhere
What is Docker?
Virtualization tool?
Configuration manager?
VM manager?
cgroups?
LXC?
libvirt?
go?
Docker.com says
Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications.
Less portable, minimal overhead
Most portable,
lots of overhead
Manual
configuration
Traditional VMs
CM tools
Docker
Docker in practice
Containers
How you run
your application
Images
How you store
your application
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"]
Docker library images
Docker's past, present, and future
Familiar origins
Tons of open
source projects!
Dependency-heavy utilities
2014
- Get to 1.0 (production-ready)
- Establish partnerships
- Round out some rough edges (v1.3)
2015
- Make Docker easier to use
- Popularize best practices for scaling
- "Include more batteries"
Trying it yourself
1
Go all in on a
non-essential service
(avoid using Docker for just development)
2
Use the official
base images
(but don't be afraid to build your own)
3
Install docker-compose
right after you install Docker
4
Keep an eye on docker-machine and docker-swarm
5
Check out my tutorial
http://docker.atbaker.me
Questions?
Thanks to these people who answered questions and gave me feedback for this talk:
- Jérôme Petazzoni (Docker)
- Matt Makai (Twilio)
- The Motley Fool dev team
- The TrackMaven dev team
- Excella Consulting's Python team
Demystifying Docker
By Andrew T. Baker
Demystifying Docker
Presentation used in my PyCon US 2015 "Demystifying Docker" talk
- 5,413