Bind mounting /var/run/netns

After reading:
https://www.slideshare.net/clayton_oneill/dockerizing-the-hard-services-neutron-amp-nova
This commit is contained in:
Egon Rijpkema 2018-07-16 16:38:34 +02:00
parent 8942c31edc
commit 0b92467965
2 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@ ExecStart=/usr/bin/docker run --name %n \
--privileged \
--network host \
-v /lib/modules:/lib/modules \
-v /var/run/netns:/var/run/netns \
{{ docker_image }} /etc/run.sh
[Install]

View File

@ -43,6 +43,7 @@ ExecStart=/usr/bin/docker run --name %n \
-v /dev:/dev \
-v /var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock \
-v /var/lib/nova/instances:/var/lib/nova/instances \
-v /var/run/netns:/var/run/netns \
-v /lib/modules:/lib/modules \
-v /etc/machine-id:/etc/machine-id \
-v /etc/ceph:/etc/ceph \