Skip to content

Instantly share code, notes, and snippets.

@eugeneware
Created August 4, 2013 05:12
Show Gist options
  • Save eugeneware/6149249 to your computer and use it in GitHub Desktop.
Save eugeneware/6149249 to your computer and use it in GitHub Desktop.
[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