Skip to content

Commit 76aed24

Browse files
vdemeesterTibor Vass
authored andcommitted
Improve systemd service unit in *Automatically start containers*
Signed-off-by: Vincent Demeester <vincent@sbr.pm> (cherry picked from commit 48744e0) Signed-off-by: Tibor Vass <tibor@docker.com>
1 parent 6387822 commit 76aed24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/admin/host_integration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,6 @@ and removed when the service is stopped.
8484
[Service]
8585
...
8686
ExecStart=/usr/bin/docker run --env foo=bar --name redis_server redis
87-
ExecStop=/usr/bin/docker stop -t 2 redis_server ; /usr/bin/docker rm -f redis_server
87+
ExecStop=/usr/bin/docker stop -t 2 redis_server
88+
ExecStopPost=/usr/bin/docker rm -f redis_server
8889
...

0 commit comments

Comments
 (0)