Last active
February 9, 2016 19:25
-
-
Save jbott/4640f881f9c97d675a33 to your computer and use it in GitHub Desktop.
A docker container systemd service file. This has no support for container dependencies.
This file contains 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=Docker %i 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