Skip to content

Instantly share code, notes, and snippets.

@thomasweng15
Last active February 5, 2017 01:06
Show Gist options
  • Save thomasweng15/6a3e7cb1fc0c1a5a7c97fbd2991d1545 to your computer and use it in GitHub Desktop.
Save thomasweng15/6a3e7cb1fc0c1a5a7c97fbd2991d1545 to your computer and use it in GitHub Desktop.
Save at /etc/systemd/system/docker-ml.service
[Unit]
Description=ML container
Requires=docker.service
After=docker.service
[Service]
Restart=always
ExecStart=/usr/bin/docker start -a ml
ExecStop=/usr/bin/docker stop -t 2 ml
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment