[go: up one dir, main page]

0% found this document useful (0 votes)
78 views11 pages

Hands On With Docker + Openstack: 24 September 2014

This document provides steps for configuring Docker containers with OpenStack using Devstack including preparing the machine, configuring the Nova driver, setting up Devstack, and spawning containers. Key steps include installing Docker and configuring the localrc file to use the Docker virtual driver, running a Docker installation script, installing Devstack without root privileges, and launching containers through the OpenStack dashboard.

Uploaded by

abhijitch
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views11 pages

Hands On With Docker + Openstack: 24 September 2014

This document provides steps for configuring Docker containers with OpenStack using Devstack including preparing the machine, configuring the Nova driver, setting up Devstack, and spawning containers. Key steps include installing Docker and configuring the localrc file to use the Docker virtual driver, running a Docker installation script, installing Devstack without root privileges, and launching containers through the OpenStack dashboard.

Uploaded by

abhijitch
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Hands on with

Docker + OpenStack
24 September 2014

Steps
Prepare the machine
Configure the Nova driver
Set up Devstack
Spawn containers

Main guide
wiki.openstack.org/wiki/Docker#Deployment_with_DevStack

Prepare the machine


Get a clean machine
Prefer Ubuntu 14.04 or 12.04

Clone Devstack
git clone https://github.com/openstack-dev/devstack
git checkout stable/havana

Install socat
sudo apt-get install socat

Configure the Nova driver


1. Install Docker

curl -sSL https://get.docker.io/ubuntu/ | sudo sh

2. Prepare configuration file

echo VIRT_DRIVER=docker >> localrc

3. Run Docker Nova driver installation

./tools/docker/install_docker.sh
Do not run the above command as root!

Set up Devstack
Install Devstack
./stack.sh
Do not run the above command as root!

Configure Apache
sudo rm /etc/apache2/sites-enabled/000-default.conf
Remove Require all denied from /etc/apache2/apache2.conf
sudo service apache2 reload

Spawn containers
Log into Horizon
Open http://your-server-ip in your browser

Click on Instances under Manage Compute


Click on Launch Instance

Spawn containers

Spawn containers

Lacking features
No way to stop or remove instances
Complex image management
No console access

Thank you.

You might also like