1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #24217 from vdemeester/23887-docs

Improve systemd service unit in *Automatically start containers*
This commit is contained in:
Sebastiaan van Stijn 2016-07-01 08:02:36 -07:00 committed by GitHub
commit b36f068bc5

View file

@ -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
...