From 76aed241923bfcf5b287bd1371c12d896157d146 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Fri, 1 Jul 2016 15:19:28 +0200 Subject: [PATCH] Improve systemd service unit in *Automatically start containers* Signed-off-by: Vincent Demeester (cherry picked from commit 48744e03e951c7ab4be180fbf6c1f56108512efa) Signed-off-by: Tibor Vass --- docs/admin/host_integration.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/admin/host_integration.md b/docs/admin/host_integration.md index fd47ea6ec8..f3dde2e251 100644 --- a/docs/admin/host_integration.md +++ b/docs/admin/host_integration.md @@ -84,5 +84,6 @@ and removed when the service is stopped. [Service] ... ExecStart=/usr/bin/docker run --env foo=bar --name redis_server redis - ExecStop=/usr/bin/docker stop -t 2 redis_server ; /usr/bin/docker rm -f redis_server + ExecStop=/usr/bin/docker stop -t 2 redis_server + ExecStopPost=/usr/bin/docker rm -f redis_server ...