From 6bd8d41a39610efe098dff0df5eb2f7b4a1c9946 Mon Sep 17 00:00:00 2001 From: Huamin Chen Date: Mon, 1 Feb 2016 15:40:48 +0000 Subject: [PATCH] remove --rm option from docker run, since the image is already removed during pre start Signed-off-by: Huamin Chen --- roles/ceph-mon/tasks/templates/ceph-mon.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-mon/tasks/templates/ceph-mon.service.j2 b/roles/ceph-mon/tasks/templates/ceph-mon.service.j2 index b97248e21..c8c5de7bc 100644 --- a/roles/ceph-mon/tasks/templates/ceph-mon.service.j2 +++ b/roles/ceph-mon/tasks/templates/ceph-mon.service.j2 @@ -7,7 +7,7 @@ EnvironmentFile=/etc/environment ExecStartPre=-/usr/bin/docker kill %p ExecStartPre=-/usr/bin/docker rm %p ExecStartPre=/usr/bin/mkdir -p /etc/ceph /var/lib/ceph/mon -ExecStart=/usr/bin/docker run -d --rm --name %p --net=host \ +ExecStart=/usr/bin/docker run -d --name %p --net=host \ -v /var/lib/ceph:/var/lib/ceph \ -v /etc/ceph:/etc/ceph \ --privileged \