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, 2020 in OpenStack by akhtar
• 38,260 points
1,377 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, 2020 by MD
• 95,460 points

Related Questions In OpenStack

0 votes
1 answer

How do I configure Block Storage to use an NFS storage back end in OpenStack?

Hi@akhtar, You can use NFS technology for your ...READ MORE

answered Mar 19, 2020 in OpenStack by MD
• 95,460 points
1,400 views
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, 2020 in OpenStack by MD
• 95,460 points
1,069 views
0 votes
1 answer

How can I create one private subnet in OpenStack?

Hi@Hasid, If you launched all the instances within ...READ MORE

answered Mar 19, 2020 in OpenStack by MD
• 95,460 points
690 views
0 votes
1 answer

How can I create one container in OpenStack?

Hi@Hasid, In OpenStack, Swift provides container service. Follow ...READ MORE

answered Mar 19, 2020 in OpenStack by MD
• 95,460 points
1,044 views
+2 votes
1 answer
+2 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
• 58,020 points
2,719 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, 2020 in OpenStack by MD
• 95,460 points
2,386 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, 2020 in OpenStack by MD
• 95,460 points
2,720 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP