How can I configure docker service inside OpenStack?

0 votes

Hi Guys,

I am working on a project. For that I used OpenStack as a cloud platform. But I need container service for some purpose. How can I use container service in OpenStack?

Thank You

Mar 23 in OpenStack by akhtar
• 10,330 points
94 views

1 answer to this question.

0 votes

Hi@akhtar,

The first requirement is to install Docker on your compute hosts.

In order for Nova to communicate with Docker over its local socket, add nova to the docker group and restart the compute service to pick up the change:

usermod -aG docker nova
service openstack-nova-compute restart

You will also need to install the driver:

pip install -e git+https://github.com/stackforge/nova-docker#egg=novadocker

You should then install the required modules

cd src/novadocker/
python setup.py install

Nova needs to be configured to use the Docker virt driver.

Edit the configuration file /etc/nova/nova.conf according to the following options:

[DEFAULT]
compute_driver = novadocker.virt.docker.DockerDriver

Create the directory /etc/nova/rootwrap.d, if it does not already exist, and inside that directory create a file "docker.filters" with the following content:

# 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

Glance needs to be configured to support the "docker" container format. It's important to leave the default ones in order to not break an existing glance install.

[DEFAULT]
container_formats = ami,ari,aki,bare,ovf,docker

Follow the above given steps.

Thank You

answered Mar 23 by MD
• 22,520 points

Related Questions In OpenStack

0 votes
1 answer

How can I create a network in OpenStack automatically?

Hi@akhtar, To create the router automatically, provide the ...READ MORE

answered Mar 18 in OpenStack by MD
• 22,520 points
36 views
0 votes
1 answer

How can I create a public network in OpenStack?

Hi@akhtar,  In OpenStack you are the admin of ...READ MORE

answered Mar 18 in OpenStack by MD
• 22,520 points
121 views
0 votes
1 answer
0 votes
1 answer

How do I Configure GlusterFS for OpenStack Block Storage?

Hi@akhtar, To set GlusterFS as your partitioner tool in ...READ MORE

answered Mar 19 in OpenStack by MD
• 22,520 points
46 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,530 points
536 views
0 votes
1 answer

How can I do SSH inside my instance in OpenStack?

Hi@akhtar, Yes, there is nothing wrong with your ...READ MORE

answered Mar 17 in OpenStack by MD
• 22,520 points
41 views
0 votes
1 answer

Can we install OpenStack inside docker container?

Hi@akhtar, Yes, you can install OpenStack inside docker ...READ MORE

answered Mar 13 in OpenStack by MD
• 22,520 points
39 views