docker --net=host with openstack

asked 2017-05-15 02:41:39 -0500

anonymous user

Anonymous

updated 2017-05-15 03:36:51 -0500

Hi Team

I'm able to run docker containers on arm64 compute node and able to login into it. However due to some specific reason, I need to run docker containers with --net=host as a parameter.

Please let me know how can we do that with nova using OpenStack.

Thanks Abhishek Jain

edit retag flag offensive close merge delete

Comments

Hi, how are you running docker in compute nodes? With nova-docker, zun, magnum, etc?

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2017-05-15 03:37:15 -0500 )edit

Hi Ed

I'm using nova-docker on compute-node.
ashu gravatar imageashu ( 2017-05-15 03:41:51 -0500 )edit

As far I know nova-docker driver not allow --net host, nova-docker is not the good way to run containers in openstack, suggest you to use zun project instead, zun is a real container method while nova-docker treat containers as VMs when they are not the same

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2017-05-15 04:37:06 -0500 )edit

Can you point out the function which starts docker containers in novadocker on compute-node.

ashu gravatar imageashu ( 2017-05-15 06:02:03 -0500 )edit

nova-docker driver is deprecated and no longer maintained after ocata , here is the create_container function https://github.com/openstack/nova-doc...

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2017-05-15 14:33:21 -0500 )edit