Last active
September 20, 2016 14:51
-
-
Save coeusite/672aa2534eb40e3b76de1c1d2cafb2f0 to your computer and use it in GitHub Desktop.
General systemd service profile for one docker container
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] | |
Description=General systemd service profile for one docker container | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
Restart=always | |
ExecStart=/usr/bin/docker start -a %i | |
ExecStop=/usr/bin/docker stop -t 2 %i | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment