Created
August 4, 2013 06:07
-
-
Save philips/6149371 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
$ cat /media/state/units/docker-local.service | |
[Service] | |
Type=simple | |
ExecStartPre=/bin/systemctl kill docker.service | |
ExecStartPre=/bin/mount --make-rprivate / | |
# Enable forwarding to allow NAT to work | |
# TODO: Move this to sysctl.conf | |
ExecStartPre=/sbin/sysctl -w net.ipv4.ip_forward=1 | |
# Try to use this alternate way of starting docker if docker crashes for you: | |
# ExecStart=/bin/bash -c "/usr/bin/nohup /usr/bin/docker -d -D &" | |
# You also need to update Type above to: Type=forking | |
ExecStart=/usr/bin/docker -d -D -r=true | |
KillSignal=SIGKILL | |
[Install] | |
WantedBy=local.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment