Created
February 1, 2019 03:19
-
-
Save nowk/f40951bb0fd2925f8ad5bb85e44e72f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
... | |
[Service] | |
ExecStartPre=-/usr/bin/docker kill %n | |
// will need to remove volume if named | |
ExecStartPre=-/usr/bin/docker rm -v %n | |
ExectStart=/usr/bim/docker \ | |
--name %n \ | |
... | |
ExecStop=/usr/bin/docker stop -t 3 %n | |
Restart=on-failure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment