installing docker on openstack with ubuntu

asked 2015-02-11 04:51:06 -0600

Neo gravatar image

Hi, I am running openstack with master branch on ubuntu 14.04 And I am trying to install docker with openstack and i am following these links , (

As per the wiki link if i do the changes in /etc/nova/nova.conf and then do then the changes will be overwritten.

Also if i add VIRT_DRIVER=docker in localrc then n-cpu process does not come up.Can any one guide me to set this up on ubuntu

Following is my localrc file

enable_service ceilometer-acompute ceilometer-acentral ceilometer-collector ceilometer-api
enable_service ceilometer-alarm-notifier ceilometer-alarm-evaluator
#enable_service heat h-api h-api-cfn h-api-cw h-eng
edit retag flag offensive close merge delete


I saw . But I never work with Ubuntu. I can provide two working and tested procedures on RH's F21 && CentOS 7 systems

dbaxps gravatar imagedbaxps ( 2015-02-11 06:03:24 -0600 )edit

"Installing nova-docker in N easy steps on F21 by Larsks"

dbaxps gravatar imagedbaxps ( 2015-02-11 06:04:55 -0600 )edit

Set up Two Node RDO Juno ML2&OVS&VXLAN Cluster runnig Docker Hypervisor on Controller and KVM on Compute (CentOS 7, Fedora 21)

dbaxps gravatar imagedbaxps ( 2015-02-11 06:07:14 -0600 )edit

4 answers

Sort by ยป oldest newest most voted

answered 2015-02-11 16:30:53 -0600

larsks gravatar image


I've written up a complete set of instructions for getting nova-docker installed with devstack on Ubuntu 14.04:

It turns out that among other things the current nova-docker master branch does not work with the current Nova master branch, so a patch was necessary to get things going. If that document doesn't get you going, let me know.

Good luck!

edit flag offensive delete link more


Tried all the steps in the link but when i run i get an error echo 'Error: Service n-cpu is not running' and when i look into n-cpu log it says ERROR nova.virt.driver [-] Compute driver option required, but not specified. Any idea why ?

Neo gravatar imageNeo ( 2015-02-12 03:34:34 -0600 )edit

Well, that suggests that the compute_driver option is not set in /etc/nova/nova.conf, although that would be surprising if you used the local.con from the article, which explicitly sets that in the [[post-config|$NOVA_CONF] block.

larsks gravatar imagelarsks ( 2015-02-12 07:07:57 -0600 )edit

I would start by looking in /etc/nova/nova.conf and see if the compute_driver is set. If not, please verify that you are using the same local.conf as I used, since that worked perfectly on my Ubuntu 14.04 system.

larsks gravatar imagelarsks ( 2015-02-12 07:09:03 -0600 )edit

I started fresh and everything worked as per the doc.Thanks..

Neo gravatar imageNeo ( 2015-02-13 02:19:28 -0600 )edit

Hi larsks, After docker install, I tried "sudo docker version", but get this error: FATA[0000] Get http:///var/run/docker.sock/v1.17/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS? Pls. help

adisarun gravatar imageadisarun ( 2015-03-24 15:19:27 -0600 )edit

answered 2015-02-11 23:50:23 -0600

1-Cloud gravatar image

Installing nova-docker with devstack

Follow this link, it should be helps u. (

edit flag offensive delete link more


Tried the first link but when i run i get an error echo 'Error: Service n-cpu is not running' and when i look into n-cpu log it says ERROR nova.virt.driver [-] Compute driver option required, but not specified. Any idea why ?

Neo gravatar imageNeo ( 2015-02-12 03:32:16 -0600 )edit

answered 2015-02-11 07:04:11 -0600

dbaxps gravatar image

updated 2015-02-11 07:05:10 -0600

Per Wiki you did :-

 pip install -e git+
 cd src/novadocker/
 python install

However Nova-docker driver install is pretty much different depending on release Juno or IceHouse
Details here

# yum install python-pbr python-pip
# yum install docker-io -y
# git clone
# cd nova-docker
# git checkout stable/juno
# python install
# systemctl start docker
# systemctl enable docker

Next : version python-six might be changed after install, either by upgrade or downgrade ( with rawhide version suggested by Larsks ) I had set six.__version__ to 1.7.3 after nova-docker driver install at least on RDO Juno

edit flag offensive delete link more

answered 2015-04-17 00:06:32 -0600

In Kilo, image and compute chef cookbooks are integrated with openstack docker support.

What you have to do is

a) Download latest openstack chef repo

b) ( Override ['openstack']['compute']['docker']['enable'] = false to true for all docker computes

c) curl -sSL | sudo sh

Execute above step in all docker computes

and create cloud as explained in openstack chef repo ( (

Telemetry changes are on the way and we can expect those in few weeks

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-02-11 04:41:38 -0600

Seen: 4,317 times

Last updated: Feb 11 '15