SlideShare a Scribd company logo
Introduction
to
Docker
and
Containers
@docker
@charme_g
Outline
● Whom is this for?
● What's the problem?
● What's a Container?
● Docker 101
● Docker images
● Docker future
Ops
● any distro¹
● any cloud²
● any machine (physical, virtual...)
● recent kernels³
¹ as long as it's Ubuntu or Debian ☺ others coming soon
² as long as they don't ship with their custom crappy kernel
³ at least 3.8; support for RHEL 2.6.32 on the way
Devs
● all languages
● all databases
● all O/S
● targetting Linux systems
Docker will eventually be able to target FreeBSD, Solaris, and maybe OS X.
CFO, CIO, CTO, ...
● LESS overhead!
● MORE consolidation!
● MORE agility!
● LESS costs!
Outline
● Whom is this for?
● What's the problem?
● What's a Container?
● Docker 101
● Docker images
● Docker future
The Matrix From Hell
django
web frontend ? ? ? ? ? ?
node.js
async API ? ? ? ? ? ?
background
workers ? ? ? ? ? ?
SQL database
? ? ? ? ? ?
distributed
DB, big data ? ? ? ? ? ?
message
queue ? ? ? ? ? ?
my laptop your laptop QA staging prod on
cloud VM
prod on bare
metal
Another Matrix from Hell
? ? ? ? ? ? ?
? ? ? ? ? ? ?
? ? ? ? ? ? ?
? ? ? ? ? ? ?
? ? ? ? ? ? ?
? ? ? ? ? ? ?
Solution:
the intermodal shipping container
Solved!
Solution to the deployment problem:
the Linux container
Linux containers...
Units of software delivery (ship it!)
● run everywhere
– regardless of kernel version
– regardless of host distro
– (but container and host architecture must match*)
● run anything
– if it can run on the host, it can run in the container
– i.e., if it can run on a Linux kernel, it can run
*Unless you emulate CPU with qemu and binfmt
Outline
● Whom is this for?
● What's the problem?
● What's a Container?
● Docker 101
● Docker images
● Docker future
High level approach:
it's a lightweight VM
● own process space
● own network interface
● can run stuff as root
● can have its own /sbin/init
(different from the host)
« Machine Container »
Low level approach:
it's chroot on steroids
● can also not have its own /sbin/init
● container = isolated process(es)
● share kernel with host
● no device emulation (neither HVM nor PV)
« Application Container »
Separation of concerns:
Dave the Developer
● inside my container:
– my code
– my libraries
– my package manager
– my app
– my data
Separation of concerns:
Oscar the Ops guy
● outside the container:
– logging
– remote access
– network configuration
– monitoring
How does it work?
Isolation with namespaces
● pid
● mnt
● net
● uts
● ipc
● user
How does it work?
Isolation with cgroups
● memory
● cpu
● blkio
● devices
If you're serious about security,
you also need…
● capabilities
– okay: cap_ipc_lock, cap_lease, cap_mknod,
cap_net_admin, cap_net_bind_service,
cap_net_raw
– troublesome: cap_sys_admin (mount!)
● think twice before granting root
● grsec is nice
● seccomp (very specific use cases); seccomp-
bpf
● beware of full-scale kernel exploits!
How does it work?
Copy-on-write storage
● unioning filesystems
(AUFS, overlayfs)
● snapshotting filesystems
(BTRFS, ZFS)
● copy-on-write block devices
(thin snapshots with LVM or device-mapper)
This is now being integrated with low-level LXC tools as well!
Efficiency
Compute efficiency:
almost no overhead
● processes are isolated,
but run straight on the host
● CPU performance
= native performance
● memory performance
= a few % shaved off for (optional) accounting
● network performance
= small overhead; can be reduced to zero
Storage efficiency:
many options!
Union
Filesystems
Snapshotting
Filesystems
Copy-on-write
block devices
Provisioning Superfast
Supercheap
Fast
Cheap
Fast
Cheap
Changing
small files
Superfast
Supercheap
Fast
Cheap
Fast
Costly
Changing
large files
Slow (first time)
Inefficient (copy-up!)
Fast
Cheap
Fast
Cheap
Diffing Superfast Superfast (ZFS)
Kinda meh (BTRFS)
Slow
Memory usage Efficient Efficient Inefficient
(at high densities)
Drawbacks Random quirks
AUFS not mainline
!AUFS more quirks
ZFS not mainline
BTRFS not as nice
Higher disk usage
Great performance
(except diffing)
Bottom line Ideal for PAAS and
high density things
This might be the
Future
Dodge Ram 3500
Outline
● Whom is this for?
● What's the problem?
● What's a Container?
● Docker 101
● Docker images
● Docker future
Introduction to Docker and Containers
Docker-what?
● Open Source engine to commoditize LXC
● using copy-on-write for quick provisioning
STOP!
HAMMER DEMO TIME.
Introduction to Docker and Containers
Yes, but...
● « I don't need Docker;
I can do all that stuff with LXC tools, rsync,
some scripts! »
● correct on all accounts;
but it's also true for apt, dpkg, rpm, yum, etc.
● the whole point is to commoditize,
i.e. make it ridiculously easy to use
Containers before Docker
Containers after Docker
What this really means…
● instead of writing « very small shell scripts » to
manage containers, write them to do the rest:
– continuous deployment/integration/testing
– orchestration
● = use Docker as a building block
● re-use other people images (yay ecosystem!)
Docker-what?
The Big Picture
● Open Source engine to commoditize LXC
● using copy-on-write for quick provisioning
● allowing to create and share images
● standard format for containers
(stack of layers; 1 layer = tarball+metadata)
● standard, reproducible way to easily build
trusted images (Dockerfile, Stackbrew...)
Docker-what?
Under The Hood
● rewrite of dotCloud internal container engine
– original version: Python, tied to dotCloud's internal
stuff
– released version: Go, legacy-free
● the Docker daemon runs in the background
– manages containers, images, and builds
– HTTP API (over UNIX or TCP socket)
– embedded CLI talking to the API
● Open Source (GitHub public repository + issue
tracking)
Outline
● Whom is this for?
● What's the problem?
● What's a Container?
● Docker 101
● Docker images
● Docker future
Authoring images
with run/commit
1) docker run ubuntu bash
2) apt-get install this and that
3) docker commit <containerid> <imagename>
4) docker run <imagename> bash
5) git clone git://.../mycode
6) pip install -r requirements.txt
7) docker commit <containerid> <imagename>
8) repeat steps 4-7 as necessary
9) docker tag <imagename> <user/image>
Authoring images
with a Dockerfile
FROM ubuntu
RUN apt-get -y update
RUN apt-get install -y g++
RUN apt-get install -y erlang-dev erlang-manpages
erlang-base-hipe ...
RUN apt-get install -y libmozjs185-dev libicu-dev
libtool ...
RUN apt-get install -y make wget
RUN wget http://.../apache-couchdb-1.3.1.tar.gz | tar
-C /tmp -zxf-
RUN cd /tmp/apache-couchdb-* && ./configure && make
install
RUN printf "[httpd]nport = 8101nbind_address =
0.0.0.0" >
Authoring Images
with Chef/Puppet/Ansible/Salt/...
Plan A: « my other VM is a container »
● write a Dockerfile to install $YOUR_CM
● start tons of containers
● run $YOUR_CM in them
Good if you want a mix of containers/VM/metal
But slower to deploy, and uses more resources
Authoring Images
with Chef/Puppet/Ansible/Salt/...
Plan B: « the revolution will be
containerized »
● write a Dockerfile to install $YOUR_CM
● … and run $YOUR_CM as part of build
process
● deploy fully baked images
Faster to deploy
Easier to rollback
Outline
● Whom is this for?
● What's the problem?
● What's a Container?
● Docker 101
● Docker images
● Docker future
Docker: the community
● Docker: >200 contributors
● <7% of them work for dotCloud Docker inc.
● latest milestone (0.6): 40 contributors
● ~50% of all commits by external contributors
● GitHub repository: >800 forks
Docker: the ecosystem
● Cocaine (PAAS; has Docker plugin)
● CoreOS (full distro based on Docker)
● Deis (PAAS; available)
● Dokku (mini-Heroku in 100 lines of bash)
● Flynn (PAAS; in development)
● Maestro (orchestration from a simple YAML
file)
● OpenStack integration (in Havana, Nova has a
Docker driver)
Docker long-term roadmap
Docker 1.0:
● dynamic discovery
● remove AUFS, THINP, LXC, etc.
– execution? chroot!
– storage? cp!
– we can run everywhere o/
● re-add everything as plugins
Thank you! Questions?
http://docker.io/
http://docker.com/
https://github.com/dotcloud/docker
@docker
@charme_g

More Related Content

PPTX
Dockerfile basics | docker workshop #1 at Rackspace
PPTX
Dockerfile Basics | Docker workshop #2 at twitter, 2013-11-05
PPTX
Dockerfile Basics Workshop #1
PDF
Docker Continuous Delivery Workshop
PDF
Introduction to docker
PDF
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
PDF
Docker 101 - Intro to Docker
PDF
Dockerizing your applications - Docker workshop @Twitter
Dockerfile basics | docker workshop #1 at Rackspace
Dockerfile Basics | Docker workshop #2 at twitter, 2013-11-05
Dockerfile Basics Workshop #1
Docker Continuous Delivery Workshop
Introduction to docker
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
Docker 101 - Intro to Docker
Dockerizing your applications - Docker workshop @Twitter

What's hot (19)

PDF
Intro To Docker
PDF
Dockerfile
PDF
Docker Introduction
PPTX
Architecting .NET Applications for Docker and Container Based Deployments
PDF
Docker 101: An Introduction
ODP
Ruby and Docker on Rails
PPTX
What is Docker
PPTX
Learn docker in 90 minutes
PDF
PDF
OpenStack - Docker - Rackspace HQ
PDF
Docker and the Linux Kernel
PPTX
Introduction to dockerfile, SF Peninsula Software Development Meetup @Guidewire
PPTX
Docker intro
PDF
docker installation and basics
PDF
Docker Introduction
PDF
JOSA TechTalk: Introduction to docker
PPTX
Docker Introductory workshop
PDF
Docker Introduction
PPTX
Docker introduction
Intro To Docker
Dockerfile
Docker Introduction
Architecting .NET Applications for Docker and Container Based Deployments
Docker 101: An Introduction
Ruby and Docker on Rails
What is Docker
Learn docker in 90 minutes
OpenStack - Docker - Rackspace HQ
Docker and the Linux Kernel
Introduction to dockerfile, SF Peninsula Software Development Meetup @Guidewire
Docker intro
docker installation and basics
Docker Introduction
JOSA TechTalk: Introduction to docker
Docker Introductory workshop
Docker Introduction
Docker introduction
Ad

Viewers also liked (20)

PPTX
Dockerizing Stashboard
PDF
Interoperable Containers
PPTX
Intro to Docker October 2013
PDF
LXC to Docker Via Continuous Delivery
PDF
Test What You Write, Ship What You Test
PDF
Deploying Containers and Managing Them
PPTX
DockerCon14 Automated Chef Cookbook Testing
PDF
Making it Easier to Contribute to Open Source Projects Using Docker Container...
PPTX
OpenStack Summit
PPTX
DockerCon 16 - Moby's Cool Hack Session
PDF
Mobycraft - Docker in 8-bit by Aditya Gupta
PPTX
Docker Online Meetup #30: Docker Trusted Registry 1.4.1
PDF
Docker Plugin for Heat II
PPTX
DockerCon14 eBay
PDF
Mobycraft:Docker in 8-bit (Meetup at Docker HQ 4/7)
PPTX
DockerCon SF 2015: Panel Discussion Birds of a Different Feather Soar Together
PDF
On-the-Fly Containerization of Enterprise Java & .NET Apps by Amjad Afanah
PPT
Developer Week
PDF
Autoscaling Docker Containers by Konstantinos Faliagkas, Docker Birthday #3 A...
PDF
A Gentle Introduction to Docker and Containers
Dockerizing Stashboard
Interoperable Containers
Intro to Docker October 2013
LXC to Docker Via Continuous Delivery
Test What You Write, Ship What You Test
Deploying Containers and Managing Them
DockerCon14 Automated Chef Cookbook Testing
Making it Easier to Contribute to Open Source Projects Using Docker Container...
OpenStack Summit
DockerCon 16 - Moby's Cool Hack Session
Mobycraft - Docker in 8-bit by Aditya Gupta
Docker Online Meetup #30: Docker Trusted Registry 1.4.1
Docker Plugin for Heat II
DockerCon14 eBay
Mobycraft:Docker in 8-bit (Meetup at Docker HQ 4/7)
DockerCon SF 2015: Panel Discussion Birds of a Different Feather Soar Together
On-the-Fly Containerization of Enterprise Java & .NET Apps by Amjad Afanah
Developer Week
Autoscaling Docker Containers by Konstantinos Faliagkas, Docker Birthday #3 A...
A Gentle Introduction to Docker and Containers
Ad

Similar to Introduction to Docker and Containers (20)

PDF
Introduction to Docker at SF Peninsula Software Development Meetup @Guidewire
PDF
A Gentle Introduction To Docker And All Things Containers
PDF
Introduction to Docker and all things containers, Docker Meetup at RelateIQ
PDF
Docker 0.11 at MaxCDN meetup in Los Angeles
PDF
Lightweight Virtualization with Linux Containers and Docker I YaC 2013
PDF
Lightweight Virtualization with Linux Containers and Docker | YaC 2013
PDF
Introduction to Docker, December 2014 "Tour de France" Bordeaux Special Edition
PDF
Introduction to Docker (as presented at December 2013 Global Hackathon)
PDF
Introduction to Docker, December 2014 "Tour de France" Edition
PDF
Workshop : 45 minutes pour comprendre Docker avec Jérôme Petazzoni
PDF
Docker and-containers-for-development-and-deployment-scale12x
PDF
"Lightweight Virtualization with Linux Containers and Docker". Jerome Petazzo...
PDF
Puppet Camp Seattle 2014: Docker and Puppet: 1+1=3
PDF
Docker Introduction, and what's new in 0.9 — Docker Palo Alto at RelateIQ
PDF
Docker Introduction + what is new in 0.9
PDF
Puppet Camp Chicago 2014: Docker and Puppet: 1+1=3 (Intermediate)
PPTX
Настройка окружения для кросскомпиляции проектов на основе docker'a
PDF
Real-World Docker: 10 Things We've Learned
PDF
Docker and Puppet — Puppet Camp L.A. — SCALE12X
PDF
Let's Containerize New York with Docker!
Introduction to Docker at SF Peninsula Software Development Meetup @Guidewire
A Gentle Introduction To Docker And All Things Containers
Introduction to Docker and all things containers, Docker Meetup at RelateIQ
Docker 0.11 at MaxCDN meetup in Los Angeles
Lightweight Virtualization with Linux Containers and Docker I YaC 2013
Lightweight Virtualization with Linux Containers and Docker | YaC 2013
Introduction to Docker, December 2014 "Tour de France" Bordeaux Special Edition
Introduction to Docker (as presented at December 2013 Global Hackathon)
Introduction to Docker, December 2014 "Tour de France" Edition
Workshop : 45 minutes pour comprendre Docker avec Jérôme Petazzoni
Docker and-containers-for-development-and-deployment-scale12x
"Lightweight Virtualization with Linux Containers and Docker". Jerome Petazzo...
Puppet Camp Seattle 2014: Docker and Puppet: 1+1=3
Docker Introduction, and what's new in 0.9 — Docker Palo Alto at RelateIQ
Docker Introduction + what is new in 0.9
Puppet Camp Chicago 2014: Docker and Puppet: 1+1=3 (Intermediate)
Настройка окружения для кросскомпиляции проектов на основе docker'a
Real-World Docker: 10 Things We've Learned
Docker and Puppet — Puppet Camp L.A. — SCALE12X
Let's Containerize New York with Docker!

More from Docker, Inc. (20)

PDF
Containerize Your Game Server for the Best Multiplayer Experience
PDF
How to Improve Your Image Builds Using Advance Docker Build
PDF
Build & Deploy Multi-Container Applications to AWS
PDF
Securing Your Containerized Applications with NGINX
PDF
How To Build and Run Node Apps with Docker and Compose
PDF
Hands-on Helm
PDF
Distributed Deep Learning with Docker at Salesforce
PDF
The First 10M Pulls: Building The Official Curl Image for Docker Hub
PDF
Monitoring in a Microservices World
PDF
COVID-19 in Italy: How Docker is Helping the Biggest Italian IT Company Conti...
PDF
Predicting Space Weather with Docker
PDF
Become a Docker Power User With Microsoft Visual Studio Code
PDF
How to Use Mirroring and Caching to Optimize your Container Registry
PDF
Monolithic to Microservices + Docker = SDLC on Steroids!
PDF
Kubernetes at Datadog Scale
PDF
Labels, Labels, Labels
PDF
Using Docker Hub at Scale to Support Micro Focus' Delivery and Deployment Model
PDF
Build & Deploy Multi-Container Applications to AWS
PDF
From Fortran on the Desktop to Kubernetes in the Cloud: A Windows Migration S...
PDF
Developing with Docker for the Arm Architecture
Containerize Your Game Server for the Best Multiplayer Experience
How to Improve Your Image Builds Using Advance Docker Build
Build & Deploy Multi-Container Applications to AWS
Securing Your Containerized Applications with NGINX
How To Build and Run Node Apps with Docker and Compose
Hands-on Helm
Distributed Deep Learning with Docker at Salesforce
The First 10M Pulls: Building The Official Curl Image for Docker Hub
Monitoring in a Microservices World
COVID-19 in Italy: How Docker is Helping the Biggest Italian IT Company Conti...
Predicting Space Weather with Docker
Become a Docker Power User With Microsoft Visual Studio Code
How to Use Mirroring and Caching to Optimize your Container Registry
Monolithic to Microservices + Docker = SDLC on Steroids!
Kubernetes at Datadog Scale
Labels, Labels, Labels
Using Docker Hub at Scale to Support Micro Focus' Delivery and Deployment Model
Build & Deploy Multi-Container Applications to AWS
From Fortran on the Desktop to Kubernetes in the Cloud: A Windows Migration S...
Developing with Docker for the Arm Architecture

Introduction to Docker and Containers

  • 2. Outline ● Whom is this for? ● What's the problem? ● What's a Container? ● Docker 101 ● Docker images ● Docker future
  • 3. Ops ● any distro¹ ● any cloud² ● any machine (physical, virtual...) ● recent kernels³ ¹ as long as it's Ubuntu or Debian ☺ others coming soon ² as long as they don't ship with their custom crappy kernel ³ at least 3.8; support for RHEL 2.6.32 on the way
  • 4. Devs ● all languages ● all databases ● all O/S ● targetting Linux systems Docker will eventually be able to target FreeBSD, Solaris, and maybe OS X.
  • 5. CFO, CIO, CTO, ... ● LESS overhead! ● MORE consolidation! ● MORE agility! ● LESS costs!
  • 6. Outline ● Whom is this for? ● What's the problem? ● What's a Container? ● Docker 101 ● Docker images ● Docker future
  • 7. The Matrix From Hell django web frontend ? ? ? ? ? ? node.js async API ? ? ? ? ? ? background workers ? ? ? ? ? ? SQL database ? ? ? ? ? ? distributed DB, big data ? ? ? ? ? ? message queue ? ? ? ? ? ? my laptop your laptop QA staging prod on cloud VM prod on bare metal
  • 8. Another Matrix from Hell ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
  • 11. Solution to the deployment problem: the Linux container
  • 12. Linux containers... Units of software delivery (ship it!) ● run everywhere – regardless of kernel version – regardless of host distro – (but container and host architecture must match*) ● run anything – if it can run on the host, it can run in the container – i.e., if it can run on a Linux kernel, it can run *Unless you emulate CPU with qemu and binfmt
  • 13. Outline ● Whom is this for? ● What's the problem? ● What's a Container? ● Docker 101 ● Docker images ● Docker future
  • 14. High level approach: it's a lightweight VM ● own process space ● own network interface ● can run stuff as root ● can have its own /sbin/init (different from the host) « Machine Container »
  • 15. Low level approach: it's chroot on steroids ● can also not have its own /sbin/init ● container = isolated process(es) ● share kernel with host ● no device emulation (neither HVM nor PV) « Application Container »
  • 16. Separation of concerns: Dave the Developer ● inside my container: – my code – my libraries – my package manager – my app – my data
  • 17. Separation of concerns: Oscar the Ops guy ● outside the container: – logging – remote access – network configuration – monitoring
  • 18. How does it work? Isolation with namespaces ● pid ● mnt ● net ● uts ● ipc ● user
  • 19. How does it work? Isolation with cgroups ● memory ● cpu ● blkio ● devices
  • 20. If you're serious about security, you also need… ● capabilities – okay: cap_ipc_lock, cap_lease, cap_mknod, cap_net_admin, cap_net_bind_service, cap_net_raw – troublesome: cap_sys_admin (mount!) ● think twice before granting root ● grsec is nice ● seccomp (very specific use cases); seccomp- bpf ● beware of full-scale kernel exploits!
  • 21. How does it work? Copy-on-write storage ● unioning filesystems (AUFS, overlayfs) ● snapshotting filesystems (BTRFS, ZFS) ● copy-on-write block devices (thin snapshots with LVM or device-mapper) This is now being integrated with low-level LXC tools as well!
  • 23. Compute efficiency: almost no overhead ● processes are isolated, but run straight on the host ● CPU performance = native performance ● memory performance = a few % shaved off for (optional) accounting ● network performance = small overhead; can be reduced to zero
  • 24. Storage efficiency: many options! Union Filesystems Snapshotting Filesystems Copy-on-write block devices Provisioning Superfast Supercheap Fast Cheap Fast Cheap Changing small files Superfast Supercheap Fast Cheap Fast Costly Changing large files Slow (first time) Inefficient (copy-up!) Fast Cheap Fast Cheap Diffing Superfast Superfast (ZFS) Kinda meh (BTRFS) Slow Memory usage Efficient Efficient Inefficient (at high densities) Drawbacks Random quirks AUFS not mainline !AUFS more quirks ZFS not mainline BTRFS not as nice Higher disk usage Great performance (except diffing) Bottom line Ideal for PAAS and high density things This might be the Future Dodge Ram 3500
  • 25. Outline ● Whom is this for? ● What's the problem? ● What's a Container? ● Docker 101 ● Docker images ● Docker future
  • 27. Docker-what? ● Open Source engine to commoditize LXC ● using copy-on-write for quick provisioning STOP! HAMMER DEMO TIME.
  • 29. Yes, but... ● « I don't need Docker; I can do all that stuff with LXC tools, rsync, some scripts! » ● correct on all accounts; but it's also true for apt, dpkg, rpm, yum, etc. ● the whole point is to commoditize, i.e. make it ridiculously easy to use
  • 32. What this really means… ● instead of writing « very small shell scripts » to manage containers, write them to do the rest: – continuous deployment/integration/testing – orchestration ● = use Docker as a building block ● re-use other people images (yay ecosystem!)
  • 33. Docker-what? The Big Picture ● Open Source engine to commoditize LXC ● using copy-on-write for quick provisioning ● allowing to create and share images ● standard format for containers (stack of layers; 1 layer = tarball+metadata) ● standard, reproducible way to easily build trusted images (Dockerfile, Stackbrew...)
  • 34. Docker-what? Under The Hood ● rewrite of dotCloud internal container engine – original version: Python, tied to dotCloud's internal stuff – released version: Go, legacy-free ● the Docker daemon runs in the background – manages containers, images, and builds – HTTP API (over UNIX or TCP socket) – embedded CLI talking to the API ● Open Source (GitHub public repository + issue tracking)
  • 35. Outline ● Whom is this for? ● What's the problem? ● What's a Container? ● Docker 101 ● Docker images ● Docker future
  • 36. Authoring images with run/commit 1) docker run ubuntu bash 2) apt-get install this and that 3) docker commit <containerid> <imagename> 4) docker run <imagename> bash 5) git clone git://.../mycode 6) pip install -r requirements.txt 7) docker commit <containerid> <imagename> 8) repeat steps 4-7 as necessary 9) docker tag <imagename> <user/image>
  • 37. Authoring images with a Dockerfile FROM ubuntu RUN apt-get -y update RUN apt-get install -y g++ RUN apt-get install -y erlang-dev erlang-manpages erlang-base-hipe ... RUN apt-get install -y libmozjs185-dev libicu-dev libtool ... RUN apt-get install -y make wget RUN wget http://.../apache-couchdb-1.3.1.tar.gz | tar -C /tmp -zxf- RUN cd /tmp/apache-couchdb-* && ./configure && make install RUN printf "[httpd]nport = 8101nbind_address = 0.0.0.0" >
  • 38. Authoring Images with Chef/Puppet/Ansible/Salt/... Plan A: « my other VM is a container » ● write a Dockerfile to install $YOUR_CM ● start tons of containers ● run $YOUR_CM in them Good if you want a mix of containers/VM/metal But slower to deploy, and uses more resources
  • 39. Authoring Images with Chef/Puppet/Ansible/Salt/... Plan B: « the revolution will be containerized » ● write a Dockerfile to install $YOUR_CM ● … and run $YOUR_CM as part of build process ● deploy fully baked images Faster to deploy Easier to rollback
  • 40. Outline ● Whom is this for? ● What's the problem? ● What's a Container? ● Docker 101 ● Docker images ● Docker future
  • 41. Docker: the community ● Docker: >200 contributors ● <7% of them work for dotCloud Docker inc. ● latest milestone (0.6): 40 contributors ● ~50% of all commits by external contributors ● GitHub repository: >800 forks
  • 42. Docker: the ecosystem ● Cocaine (PAAS; has Docker plugin) ● CoreOS (full distro based on Docker) ● Deis (PAAS; available) ● Dokku (mini-Heroku in 100 lines of bash) ● Flynn (PAAS; in development) ● Maestro (orchestration from a simple YAML file) ● OpenStack integration (in Havana, Nova has a Docker driver)
  • 43. Docker long-term roadmap Docker 1.0: ● dynamic discovery ● remove AUFS, THINP, LXC, etc. – execution? chroot! – storage? cp! – we can run everywhere o/ ● re-add everything as plugins