Docker in OpenStack 
Joint Athens OpenStack User Group 
and Docker Athens Meetup, 
24th September 2014 
Thanassis Parathyras 
aparathyras@stackmasters.eu, @parathyras
Announcements 
openstack-el@lists.openstack.org 
• Join at http://lists.openstack.org 
OpenStack Summit (http://openstackceeday.com) 
• 3-7 November, Paris 
• Contact me for a discount code
OpenStack’s mission 
“to produce the 
ubiquitous Open Source Cloud Computing platform 
that will meet the needs of public and private clouds 
regardless of size, by being simple to implement and 
massively scalable”
Docker, what is it? 
“an open platform 
for developers and sysadmins 
to build, ship, and run 
distributed applications”
VMs and Containers 
Smaller resource footprint, same level isolation
Docker support in OpenStack 
OpenStack Compute (nova) 
• Docker driver (since Havana) 
• Driver not in main source code tree 
– Faster dev cycles, future plan for merging 
• Implements OpenStack API 
OpenStack Orchestration (heat) 
• Docker plugin 
• Deploy and manage containers 
• Native Docker API
Under the hood
Case 1: Docker with Heat 
Assume an OpenStack with Heat operational environment 
1. Install the Docker plugin in Heat 
cd contrib/heat-docker 
sudo python ./setup.py install 
Check Heat property plugin_dirs includes /usr/lib/heat 
2. Restart Heat 
Only the process "heat-engine" needs to be restarted to load the 
new installed plugin 
Use this plugin enable Docker containers as resources in 
Heat templates
Case 2: Docker with Nova 
Assume an OpenStack operational environment 
1. Install Docker on your compute hosts 
2. Fix permissions 
usermod -G docker nova 
service openstack-nova-compute restart 
3. Install driver 
pip install -e 
git+https://github.com/stackforge/nova-docker# 
egg=novadocker
Case 2: Enabling Docker 
1. Configure nova 
[DEFAULT] 
compute_driver = 
novadocker.virt.docker.DockerDriver 
2. Create file /etc/nova/rootwrap.d/docker.filters 
# nova-rootwrap command filters for setting up 
network in the docker driver 
# This file should be owned by (and only-writeable 
by) the root user 
[Filters] 
# nova/virt/docker/driver.py: 'ln', '-sf', 
'/var/run/netns/.*' 
ln: CommandFilter, /bin/ln, root
Case 2: Using Docker 
• Configure glance 
[DEFAULT] 
container_formats = ami,ari,aki,bare,ovf,docker 
Follow the same workflow as other virt drivers: 
• Create/Add/Use Docker images with Glance 
• Create/Manage instances with Nova
Considerations and open issues 
• Containers don't aim to be a replacement for VMs 
– they are better for specific use cases 
– VMs and containers may co-exist in a cloud environment 
• Docker driver for nova 
– Lack of integration with Cinder and Neutron 
– Imports constraints with OpenStack API 
• Orchestrating containers 
– A different approach than treating them as another hypervisor type 
– Better fitted to Docker workflow 
• Further integration 
– Docker authentication through OpenStack Identity (keystone)
OpenStack is YOU 
• Documentation 
– http://docs.openstack.org 
Cloud Administrator Guide 
• Questions 
– http://ask.openstack.org 
• Participate 
– http://www.openstack.org/join/register 
– http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack 
– http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-el 
– #OSATH, http://www.meetup.com/Athens-OpenStack-User-Group 
• Contribute 
– code (develop, review), docs, translations, bug reports 
– Review system Gerrit, https://wiki.openstack.org/wiki/GerritWorkflow 
• Follow 
– @openstack
Thank you for being patient! 
Athens OpenStack User Group #OSATH 
http://www.meetup.com/Athens-OpenStack-User-Group 
Thanassis Parathyras 
aparathyras@stackmasters.eu, @parathyras

More Related Content

PPTX
Project: OpenStack, #OSATH
PPTX
Data storage in clouds
PPTX
High Availability in OpenStack
PPTX
After summit catch up
PPTX
DevStack: Learn OpenStack by Running OpenStack
PDF
DevStack: A developers cloud in a box.
PDF
OpenStack Swift production deployments
PPTX
Continuous Deployment
Project: OpenStack, #OSATH
Data storage in clouds
High Availability in OpenStack
After summit catch up
DevStack: Learn OpenStack by Running OpenStack
DevStack: A developers cloud in a box.
OpenStack Swift production deployments
Continuous Deployment

What's hot (20)

PPTX
OpenStack Development Using devstack
PPTX
DevStack
PPTX
CoreOS: The Inside and Outside of Linux Containers
PDF
OpenStack Best Practices and Considerations - terasky tech day
ODP
OpenStack DevStack Tutorial
PPTX
#OSATH Deploy OpenStack: DevStack (cont'd)
PDF
Zun presentation (OpenStack Barcelona summit)
PPT
Openstack swift - VietOpenStack 6thmeeetup
PDF
On CloudStack, Docker, Kubernetes, and Big Data…Oh my ! By Sebastien Goasguen...
PDF
Cloud Architect Alliance #15: Openstack
PPTX
OpenStack Keystone with LDAP
PDF
Vancouver open stack meetup presentation
PDF
Discovering Docker Volume Plugins and Apps using VirtualBox
PPTX
State of Containers in OpenStack
PDF
[Open stack] heat + docker
KEY
Openstack In Real Life
PPTX
Who carries your container? Zun or Magnum?
PPTX
Architecture of massively scalable, distributed systems - InfoShare 2015
PDF
2 Day Bootcamp for OpenStack--Cloud Training by Mirantis (Preview)
PDF
Cloudinit
OpenStack Development Using devstack
DevStack
CoreOS: The Inside and Outside of Linux Containers
OpenStack Best Practices and Considerations - terasky tech day
OpenStack DevStack Tutorial
#OSATH Deploy OpenStack: DevStack (cont'd)
Zun presentation (OpenStack Barcelona summit)
Openstack swift - VietOpenStack 6thmeeetup
On CloudStack, Docker, Kubernetes, and Big Data…Oh my ! By Sebastien Goasguen...
Cloud Architect Alliance #15: Openstack
OpenStack Keystone with LDAP
Vancouver open stack meetup presentation
Discovering Docker Volume Plugins and Apps using VirtualBox
State of Containers in OpenStack
[Open stack] heat + docker
Openstack In Real Life
Who carries your container? Zun or Magnum?
Architecture of massively scalable, distributed systems - InfoShare 2015
2 Day Bootcamp for OpenStack--Cloud Training by Mirantis (Preview)
Cloudinit

Similar to Docker in OpenStack (20)

PDF
Practical Docker for OpenStack (Juno Summit - May 15th, 2014)
PDF
Docker OpenStack - 3/27/2014
PDF
Orchestrating Docker with OpenStack
PDF
Docker and OpenStack at Rackspace
PDF
OpenStack - Docker - Rackspace HQ
PDF
Practical Docker for OpenStack - NYC / PHL OpenStack meetup (4-23-2014)
PDF
Docker Meetup Bangalore - Docker + Openstack
PDF
Docker with openstack
PPTX
Docker with OpenStack
PDF
Cloud foundry Docker Openstack - Leading Open Source Triumvirate
PDF
Application Deployment on Openstack
PDF
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
PPTX
Private Cloud with Open Stack, Docker
PPTX
Docker OpenStack Cloud Foundry
PDF
Dockerizing OpenStack for High Availability
PPT
OpenStack with-docker-team-17
PPT
Sebastien goasguen cloud stack and docker
PDF
Docker Plugin for Heat
PPTX
Deploying OpenStack Using Docker in Production
PDF
ContainerDayVietnam2016: Containers with OpenStack
Practical Docker for OpenStack (Juno Summit - May 15th, 2014)
Docker OpenStack - 3/27/2014
Orchestrating Docker with OpenStack
Docker and OpenStack at Rackspace
OpenStack - Docker - Rackspace HQ
Practical Docker for OpenStack - NYC / PHL OpenStack meetup (4-23-2014)
Docker Meetup Bangalore - Docker + Openstack
Docker with openstack
Docker with OpenStack
Cloud foundry Docker Openstack - Leading Open Source Triumvirate
Application Deployment on Openstack
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
Private Cloud with Open Stack, Docker
Docker OpenStack Cloud Foundry
Dockerizing OpenStack for High Availability
OpenStack with-docker-team-17
Sebastien goasguen cloud stack and docker
Docker Plugin for Heat
Deploying OpenStack Using Docker in Production
ContainerDayVietnam2016: Containers with OpenStack

More from Thanassis Parathyras (9)

PPTX
Cycleops - Automate deployments on top of bare metal.pptx
PPTX
Add Cycleops to your development cycles - Docker Athens meetup.pptx
PDF
A practitioner's tale on clouds
PPTX
Open cloud infrastructure
PPTX
OpenStack: programmable infrastructure
PPTX
Operating the cloud
PPTX
OpenStack basics
PPTX
Project CHOReOS DynaRoute Use Case
PPTX
#OSATH Deploy OpenStack: DevStack
Cycleops - Automate deployments on top of bare metal.pptx
Add Cycleops to your development cycles - Docker Athens meetup.pptx
A practitioner's tale on clouds
Open cloud infrastructure
OpenStack: programmable infrastructure
Operating the cloud
OpenStack basics
Project CHOReOS DynaRoute Use Case
#OSATH Deploy OpenStack: DevStack

Recently uploaded (20)

PPTX
Information-Technology-in-Human-Society.pptx
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
CCUS-as-the-Missing-Link-to-Net-Zero_AksCurious.pdf
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PDF
Connector Corner: Transform Unstructured Documents with Agentic Automation
PDF
Launch a Bumble-Style App with AI Features in 2025.pdf
PDF
Decision Optimization - From Theory to Practice
PDF
CEH Module 2 Footprinting CEH V13, concepts
PDF
ment.tech-Siri Delay Opens AI Startup Opportunity in 2025.pdf
PPTX
Blending method and technology for hydrogen.pptx
PPTX
How to use fields_get method in Odoo 18
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PPTX
Report in SIP_Distance_Learning_Technology_Impact.pptx
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PPTX
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
PPTX
AQUEEL MUSHTAQUE FAKIH COMPUTER CENTER .
PDF
Examining Bias in AI Generated News Content.pdf
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PDF
Identification of potential depression in social media posts
PDF
Early detection and classification of bone marrow changes in lumbar vertebrae...
Information-Technology-in-Human-Society.pptx
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
CCUS-as-the-Missing-Link-to-Net-Zero_AksCurious.pdf
NewMind AI Weekly Chronicles – August ’25 Week IV
Connector Corner: Transform Unstructured Documents with Agentic Automation
Launch a Bumble-Style App with AI Features in 2025.pdf
Decision Optimization - From Theory to Practice
CEH Module 2 Footprinting CEH V13, concepts
ment.tech-Siri Delay Opens AI Startup Opportunity in 2025.pdf
Blending method and technology for hydrogen.pptx
How to use fields_get method in Odoo 18
Lung cancer patients survival prediction using outlier detection and optimize...
Report in SIP_Distance_Learning_Technology_Impact.pptx
Rapid Prototyping: A lecture on prototyping techniques for interface design
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
AQUEEL MUSHTAQUE FAKIH COMPUTER CENTER .
Examining Bias in AI Generated News Content.pdf
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
Identification of potential depression in social media posts
Early detection and classification of bone marrow changes in lumbar vertebrae...

Docker in OpenStack

  • 1. Docker in OpenStack Joint Athens OpenStack User Group and Docker Athens Meetup, 24th September 2014 Thanassis Parathyras [email protected], @parathyras
  • 2. Announcements [email protected] Join at http://lists.openstack.org OpenStack Summit (http://openstackceeday.com) • 3-7 November, Paris • Contact me for a discount code
  • 3. OpenStack’s mission “to produce the ubiquitous Open Source Cloud Computing platform that will meet the needs of public and private clouds regardless of size, by being simple to implement and massively scalable”
  • 4. Docker, what is it? “an open platform for developers and sysadmins to build, ship, and run distributed applications”
  • 5. VMs and Containers Smaller resource footprint, same level isolation
  • 6. Docker support in OpenStack OpenStack Compute (nova) • Docker driver (since Havana) • Driver not in main source code tree – Faster dev cycles, future plan for merging • Implements OpenStack API OpenStack Orchestration (heat) • Docker plugin • Deploy and manage containers • Native Docker API
  • 8. Case 1: Docker with Heat Assume an OpenStack with Heat operational environment 1. Install the Docker plugin in Heat cd contrib/heat-docker sudo python ./setup.py install Check Heat property plugin_dirs includes /usr/lib/heat 2. Restart Heat Only the process "heat-engine" needs to be restarted to load the new installed plugin Use this plugin enable Docker containers as resources in Heat templates
  • 9. Case 2: Docker with Nova Assume an OpenStack operational environment 1. Install Docker on your compute hosts 2. Fix permissions usermod -G docker nova service openstack-nova-compute restart 3. Install driver pip install -e git+https://github.com/stackforge/nova-docker# egg=novadocker
  • 10. Case 2: Enabling Docker 1. Configure nova [DEFAULT] compute_driver = novadocker.virt.docker.DockerDriver 2. Create file /etc/nova/rootwrap.d/docker.filters # nova-rootwrap command filters for setting up network in the docker driver # This file should be owned by (and only-writeable by) the root user [Filters] # nova/virt/docker/driver.py: 'ln', '-sf', '/var/run/netns/.*' ln: CommandFilter, /bin/ln, root
  • 11. Case 2: Using Docker • Configure glance [DEFAULT] container_formats = ami,ari,aki,bare,ovf,docker Follow the same workflow as other virt drivers: • Create/Add/Use Docker images with Glance • Create/Manage instances with Nova
  • 12. Considerations and open issues • Containers don't aim to be a replacement for VMs – they are better for specific use cases – VMs and containers may co-exist in a cloud environment • Docker driver for nova – Lack of integration with Cinder and Neutron – Imports constraints with OpenStack API • Orchestrating containers – A different approach than treating them as another hypervisor type – Better fitted to Docker workflow • Further integration – Docker authentication through OpenStack Identity (keystone)
  • 13. OpenStack is YOU • Documentation – http://docs.openstack.org Cloud Administrator Guide • Questions – http://ask.openstack.org • Participate – http://www.openstack.org/join/register – http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack – http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-el – #OSATH, http://www.meetup.com/Athens-OpenStack-User-Group • Contribute – code (develop, review), docs, translations, bug reports – Review system Gerrit, https://wiki.openstack.org/wiki/GerritWorkflow • Follow – @openstack
  • 14. Thank you for being patient! Athens OpenStack User Group #OSATH http://www.meetup.com/Athens-OpenStack-User-Group Thanassis Parathyras [email protected], @parathyras