From 4309956de1031c713cf65001611f56a25a21a7ca Mon Sep 17 00:00:00 2001 From: Egon Rijpkema Date: Mon, 10 Dec 2018 17:24:43 +0100 Subject: [PATCH] Without host mode the docker container id is referenced in volume name. --- roles/cinder-storage/templates/cinder-storage.service | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/cinder-storage/templates/cinder-storage.service b/roles/cinder-storage/templates/cinder-storage.service index 7949903..9690eb4 100644 --- a/roles/cinder-storage/templates/cinder-storage.service +++ b/roles/cinder-storage/templates/cinder-storage.service @@ -18,6 +18,7 @@ ExecStart=/usr/bin/docker run --name %n \ -v "/srv/cinder-storage/volumes/:/var/lib/cinder/volumes/" \ -p 8777:8776 \ -p 3260:3260 \ + --network=host \ {{ docker_image }} [Install]