SlideShare a Scribd company logo
Docker &
January 2014
What?
• Docker driver for Nova accepted in Havana!
• Docker plugin for Heat accepted for Icehouse!
• Docker support in devstack!
• Now spec’ing a project to improve containers support
in OpenStack
Why Docker?!
(an incomplete list)
•

Cross-Cloud compatibility

•

Dockerfiles provide flexible,
repeatable image authoring

•

Global image portability and
delivery through the Registry

•

Incremental images & builds

•

Completeness of vision
(Runtime, Configuration, Build,
Deployment, Orchestration…)
Nova Integration
Docker driver for OpenStack Compute
What?
Enables control of
Docker via OpenStack:
•
•

Nova API
Horizon UI

Supports:
• launch
• terminate
• reboot
• fetch logs
• snapshot
• glance

https://wiki.openstack.org/wiki/HypervisorSupportMatrix
UI Integration (Horizon)
UI Integration (Horizon)
Nova+Docker!
Architecture
Overview
Image Management

docker-registry is a proxy
!

users can upload through dockerregistry or to glance directly
!

docker pulls images through the
docker-registry proxy
Gate Tests
TESTS

passing >90% of tests in Tempest
- not perfect, but we have visibility
- most failures are !docker
non-voting gate coming in Icehouse

Unit Tests
38 unit tests, gating commits

(vs 541 for libvirt and 10 specific to lxc)
Not supported.!
(yet)

Neutron (+OVS)
Cinder Volumes
(Work in progress!
but patches welcome!)
Docker Basics
Example: Run Tempest
(the OpenStack integration test suite)

Based on the project
“Dockenstack” written by Paul Czarkowski
forked and improved by Eric Windisch
Run OpenStack tempest against:
• … a freshly provisioned OpenStack install
• … installed by Devstack
• … in a Docker container
Dockerfile

FROM ubuntu:raring
MAINTAINER Eric Windisch “ewindisch@docker.com”
[…]
RUN apt-get -qqy install mysql-server git socat curl …
RUN useradd devstack && usermod -a -G docker devstack
ADD devstack.sudo /etc/sudoers.d/devstack
RUN chown root /etc/sudoers.d/devstack
ADD tempest /usr/local/bin/start-devstack
RUN chmod 755 /usr/local/bin/start-devstack
VOLUME /var/lib/docker
[…]
RUN git clone https://github.com/openstack-dev/devstack
RUN /devstack/tools/install_prereqs.sh
ADD localrc /devstack/localrc
CMD [“/usr/local/bin/start-devstack"]
Build the container image:
$ docker build -t dockenstack .
Run it:
$ docker run -privileged dockenstack
Publish it on the public Registry:
$ docker tag dockenstack ewindish/dockenstack

$ docker push ewindisch/dockenstack
It’s on the public registry!
another-host$ docker search dockenstack
NAME
DESCRIPTION
ewindisch/dockenstack
OpenStack development environment (using D...

!

another-host$ docker pull ewindisch/dockenstack

… and on github!
https://github.com/ewindisch/dockenstack
OpenStack - Docker - Rackspace HQ
Applying Heat
Orchestration for Docker API using OpenStack Heat
Heat Plugin Flow
Heat Template
heat_template_version: 2013-05-23

!

description: Single compute instance with one docker containerruns devstack /w docker and tests it with Tempest!

!

resources:
my_instance:
type: OS::Nova::Server
properties:
key_name: ewindisch_key1
image: ubuntu-precise-docker
flavor: m1.large
my_docker_container:
type: OS::Heat::Docker
docker_endpoint: { get_attr: [my_instance, first_address] }
image: ewindisch/dockenstack-tempest
Heat vs Nova!
Comparison

Integration with other services
Nova features (quota, auth, etc…)
Abstraction layer for other hypervisors
Integrated scheduling

Closer to the Docker workflow
Hybrid-cloud compatible
Scheduled by backing cloud
Q&A

More Related Content

PPTX
Introduction to dockerfile, SF Peninsula Software Development Meetup @Guidewire
PDF
Docker worshop @Twitter - How to use your own private registry
PDF
Docker by Example - Basics
PDF
Are VM Passé?
PDF
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
PDF
Shipping Applications to Production in Containers with Docker
PPTX
Dockerizing stashboard - Docker meetup at Twilio
PDF
Docker on Google App Engine
Introduction to dockerfile, SF Peninsula Software Development Meetup @Guidewire
Docker worshop @Twitter - How to use your own private registry
Docker by Example - Basics
Are VM Passé?
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
Shipping Applications to Production in Containers with Docker
Dockerizing stashboard - Docker meetup at Twilio
Docker on Google App Engine

What's hot (20)

ODP
Docker - The Linux Container
PPTX
Write Once and REALLY Run Anywhere | OpenStack Summit HK 2013
PPTX
Docker Basics
PDF
Docker presentation | Paris Docker Meetup
PDF
DCA. certificate slide Session 1
PDF
Docker in pratice -chenyifei
PDF
Introduction to docker
PPTX
Docker intro
PPTX
Architecting .NET Applications for Docker and Container Based Deployments
PDF
Dockerizing your applications - Docker workshop @Twitter
PPTX
Docker Basic Presentation
PPT
Amazon Web Services and Docker
PDF
Introduction to docker
PPTX
Dockerize the World - presentation from Hradec Kralove
PDF
Docker in real life
PDF
Docker Introduction
PDF
Docker, the Future of DevOps
PPTX
Docker - 15 great Tutorials
PDF
Building Reusable Development Environments with Docker
PDF
Docker at Spotify - Dockercon14
Docker - The Linux Container
Write Once and REALLY Run Anywhere | OpenStack Summit HK 2013
Docker Basics
Docker presentation | Paris Docker Meetup
DCA. certificate slide Session 1
Docker in pratice -chenyifei
Introduction to docker
Docker intro
Architecting .NET Applications for Docker and Container Based Deployments
Dockerizing your applications - Docker workshop @Twitter
Docker Basic Presentation
Amazon Web Services and Docker
Introduction to docker
Dockerize the World - presentation from Hradec Kralove
Docker in real life
Docker Introduction
Docker, the Future of DevOps
Docker - 15 great Tutorials
Building Reusable Development Environments with Docker
Docker at Spotify - Dockercon14
Ad

Viewers also liked (20)

PPTX
DockerCon Keynote Ben Golub
PPTX
John Engates Keynote at Dockercon 14
PDF
Building a smarter application Stack by Tomas Doran from Yelp
DOC
Converse alvaro soria
PDF
Vanessa martinez hernandez
DOCX
Proyecto de aula
PDF
Agnesian Cancer Care Breast Cancer Binder
PDF
Phan mem erp omega ho so nang luc
PDF
Ventrevista
PDF
Self-Directed IRA
PPT
Canon T3i Diego Ramírez
PPT
Personas: Presentación Almachen
PDF
Proyectos.inei.gob.pe convocatorias 2014_convoca_m_declaracion
PDF
Neles Triple Eccentric Disc Valve, Metal Seated with Flow Balancing Trim
PDF
Brochure Match Hospitality
PPTX
Immutable infrastructure with Docker and EC2
PPTX
Componentes de una placa base
PDF
¿Qué es un wiki?
PDF
Digitale Technologien in der Lehre: Selbststeuerung oder Fremdsteuerung?
PDF
Charla identidad-digital-moot13
DockerCon Keynote Ben Golub
John Engates Keynote at Dockercon 14
Building a smarter application Stack by Tomas Doran from Yelp
Converse alvaro soria
Vanessa martinez hernandez
Proyecto de aula
Agnesian Cancer Care Breast Cancer Binder
Phan mem erp omega ho so nang luc
Ventrevista
Self-Directed IRA
Canon T3i Diego Ramírez
Personas: Presentación Almachen
Proyectos.inei.gob.pe convocatorias 2014_convoca_m_declaracion
Neles Triple Eccentric Disc Valve, Metal Seated with Flow Balancing Trim
Brochure Match Hospitality
Immutable infrastructure with Docker and EC2
Componentes de una placa base
¿Qué es un wiki?
Digitale Technologien in der Lehre: Selbststeuerung oder Fremdsteuerung?
Charla identidad-digital-moot13
Ad

Similar to OpenStack - Docker - Rackspace HQ (20)

PDF
Docker and OpenStack at Rackspace
PDF
Practical Docker for OpenStack (Juno Summit - May 15th, 2014)
PDF
Docker OpenStack - 3/27/2014
PPTX
Docker in OpenStack
PDF
Docker with openstack
PDF
Orchestrating Docker with OpenStack
PDF
Practical Docker for OpenStack - NYC / PHL OpenStack meetup (4-23-2014)
PPTX
Docker with OpenStack
PPT
Sebastien goasguen cloud stack and docker
PDF
Docker Meetup Bangalore - Docker + Openstack
PPTX
Deploying OpenStack Using Docker in Production
PDF
Docker module 1
PPTX
Docker OpenStack Cloud Foundry
PDF
Docker openstack-2014
PDF
Dockerizing OpenStack for High Availability
PPT
OpenStack with-docker-team-17
PDF
OpenStack in 10 minutes with Devstack
PDF
Application Deployment on Openstack
PDF
Introduction to Docker, December 2014 "Tour de France" Bordeaux Special Edition
PDF
Cloud foundry Docker Openstack - Leading Open Source Triumvirate
Docker and OpenStack at Rackspace
Practical Docker for OpenStack (Juno Summit - May 15th, 2014)
Docker OpenStack - 3/27/2014
Docker in OpenStack
Docker with openstack
Orchestrating Docker with OpenStack
Practical Docker for OpenStack - NYC / PHL OpenStack meetup (4-23-2014)
Docker with OpenStack
Sebastien goasguen cloud stack and docker
Docker Meetup Bangalore - Docker + Openstack
Deploying OpenStack Using Docker in Production
Docker module 1
Docker OpenStack Cloud Foundry
Docker openstack-2014
Dockerizing OpenStack for High Availability
OpenStack with-docker-team-17
OpenStack in 10 minutes with Devstack
Application Deployment on Openstack
Introduction to Docker, December 2014 "Tour de France" Bordeaux Special Edition
Cloud foundry Docker Openstack - Leading Open Source Triumvirate

More from dotCloud (16)

PDF
Wot2013云计算架构师峰会 -陈轶飞2
PPTX
Docker introduction
PDF
Deploying containers and managing them on multiple Docker hosts, Docker Meetu...
PDF
Introduction to Docker and all things containers, Docker Meetup at RelateIQ
PDF
Introduction to Docker at SF Peninsula Software Development Meetup @Guidewire
PDF
Introduction to Docker - Docker workshop @Twitter
PDF
Docker links | Docker workshop #2 at Twitter
PPTX
Dockerfile Basics | Docker workshop #2 at twitter, 2013-11-05
PPTX
Intro Docker october 2013
PDF
[Open stack] heat + docker
PPTX
Dockerizing WordPress
PDF
Building images from dockerfiles
PPTX
Docker at DevTable
PDF
Lightweight Virtualization with Linux Containers and Docker | YaC 2013
PPTX
Installing and running Postfix within a docker container from the command line
PDF
LXC, Docker, and the future of software delivery | LinuxCon 2013
Wot2013云计算架构师峰会 -陈轶飞2
Docker introduction
Deploying containers and managing them on multiple Docker hosts, Docker Meetu...
Introduction to Docker and all things containers, Docker Meetup at RelateIQ
Introduction to Docker at SF Peninsula Software Development Meetup @Guidewire
Introduction to Docker - Docker workshop @Twitter
Docker links | Docker workshop #2 at Twitter
Dockerfile Basics | Docker workshop #2 at twitter, 2013-11-05
Intro Docker october 2013
[Open stack] heat + docker
Dockerizing WordPress
Building images from dockerfiles
Docker at DevTable
Lightweight Virtualization with Linux Containers and Docker | YaC 2013
Installing and running Postfix within a docker container from the command line
LXC, Docker, and the future of software delivery | LinuxCon 2013

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Modernizing your data center with Dell and AMD
PDF
Machine learning based COVID-19 study performance prediction
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Encapsulation theory and applications.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Approach and Philosophy of On baking technology
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
cuic standard and advanced reporting.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Modernizing your data center with Dell and AMD
Machine learning based COVID-19 study performance prediction
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Encapsulation theory and applications.pdf
Network Security Unit 5.pdf for BCA BBA.
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Approach and Philosophy of On baking technology
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
cuic standard and advanced reporting.pdf
Encapsulation_ Review paper, used for researhc scholars
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
“AI and Expert System Decision Support & Business Intelligence Systems”
Advanced methodologies resolving dimensionality complications for autism neur...
Chapter 3 Spatial Domain Image Processing.pdf

OpenStack - Docker - Rackspace HQ

  • 2. What? • Docker driver for Nova accepted in Havana! • Docker plugin for Heat accepted for Icehouse! • Docker support in devstack! • Now spec’ing a project to improve containers support in OpenStack
  • 3. Why Docker?! (an incomplete list) • Cross-Cloud compatibility • Dockerfiles provide flexible, repeatable image authoring • Global image portability and delivery through the Registry • Incremental images & builds • Completeness of vision (Runtime, Configuration, Build, Deployment, Orchestration…)
  • 4. Nova Integration Docker driver for OpenStack Compute
  • 5. What? Enables control of Docker via OpenStack: • • Nova API Horizon UI Supports: • launch • terminate • reboot • fetch logs • snapshot • glance https://wiki.openstack.org/wiki/HypervisorSupportMatrix
  • 9. Image Management docker-registry is a proxy ! users can upload through dockerregistry or to glance directly ! docker pulls images through the docker-registry proxy
  • 10. Gate Tests TESTS passing >90% of tests in Tempest - not perfect, but we have visibility - most failures are !docker non-voting gate coming in Icehouse Unit Tests 38 unit tests, gating commits (vs 541 for libvirt and 10 specific to lxc)
  • 11. Not supported.! (yet) Neutron (+OVS) Cinder Volumes (Work in progress! but patches welcome!)
  • 12. Docker Basics Example: Run Tempest (the OpenStack integration test suite) Based on the project “Dockenstack” written by Paul Czarkowski forked and improved by Eric Windisch Run OpenStack tempest against: • … a freshly provisioned OpenStack install • … installed by Devstack • … in a Docker container
  • 13. Dockerfile FROM ubuntu:raring MAINTAINER Eric Windisch “ewindisch@docker.com” […] RUN apt-get -qqy install mysql-server git socat curl … RUN useradd devstack && usermod -a -G docker devstack ADD devstack.sudo /etc/sudoers.d/devstack RUN chown root /etc/sudoers.d/devstack ADD tempest /usr/local/bin/start-devstack RUN chmod 755 /usr/local/bin/start-devstack VOLUME /var/lib/docker […] RUN git clone https://github.com/openstack-dev/devstack RUN /devstack/tools/install_prereqs.sh ADD localrc /devstack/localrc CMD [“/usr/local/bin/start-devstack"]
  • 14. Build the container image: $ docker build -t dockenstack . Run it: $ docker run -privileged dockenstack Publish it on the public Registry: $ docker tag dockenstack ewindish/dockenstack
 $ docker push ewindisch/dockenstack
  • 15. It’s on the public registry! another-host$ docker search dockenstack NAME DESCRIPTION ewindisch/dockenstack OpenStack development environment (using D... ! another-host$ docker pull ewindisch/dockenstack … and on github! https://github.com/ewindisch/dockenstack
  • 17. Applying Heat Orchestration for Docker API using OpenStack Heat
  • 19. Heat Template heat_template_version: 2013-05-23 ! description: Single compute instance with one docker containerruns devstack /w docker and tests it with Tempest! ! resources: my_instance: type: OS::Nova::Server properties: key_name: ewindisch_key1 image: ubuntu-precise-docker flavor: m1.large my_docker_container: type: OS::Heat::Docker docker_endpoint: { get_attr: [my_instance, first_address] } image: ewindisch/dockenstack-tempest
  • 20. Heat vs Nova! Comparison Integration with other services Nova features (quota, auth, etc…) Abstraction layer for other hypervisors Integrated scheduling Closer to the Docker workflow Hybrid-cloud compatible Scheduled by backing cloud
  • 21. Q&A