From 3c95c21ab6689d0a3b837322b4c6642d71a43dd0 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 Upstream-commit: 48744e03e951c7ab4be180fbf6c1f56108512efa Component: engine --- components/engine/docs/admin/host_integration.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/engine/docs/admin/host_integration.md b/components/engine/docs/admin/host_integration.md index fd47ea6ec8..f3dde2e251 100644 --- a/components/engine/docs/admin/host_integration.md +++ b/components/engine/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 ...