Created
August 4, 2013 05:12
-
-
Save eugeneware/6149249 to your computer and use it in GitHub Desktop.
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
[Service] | |
Type=simple | |
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 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment