Skip to content

Instantly share code, notes, and snippets.

@dochang
Created July 8, 2014 05:14
Show Gist options
  • Save dochang/c29d9cbadb1a8b3c9b38 to your computer and use it in GitHub Desktop.
Save dochang/c29d9cbadb1a8b3c9b38 to your computer and use it in GitHub Desktop.
# https://github.com/dotcloud/docker/blob/master/contrib/init/systemd/docker.service
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.com
After=network.target
[Service]
ExecStart=/bin/sh -c 'exec docker -d'
ExecStop=/bin/kill $MAINPID
Restart=on-failure
LimitNOFILE=1048576
LimitNPROC=1048576
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment