Skip to content

Instantly share code, notes, and snippets.

@sroze
Created May 25, 2015 13:46
Show Gist options
  • Save sroze/77631742849cbab8dc9e to your computer and use it in GitHub Desktop.
Save sroze/77631742849cbab8dc9e to your computer and use it in GitHub Desktop.
Docker bootstrap upstart
description "Docker bootstrap"
script
# modify these in /etc/default/$UPSTART_JOB (/etc/default/docker-bootstrap)
DOCKER=/usr/bin/docker
DOCKER_OPTIONS="-d -H unix:///var/run/docker-bootstrap.sock -p /var/run/docker-bootstrap.pid --iptables=false --ip-masq=false --bridge=none --graph=/var/lib/docker-bootstrap"
if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB
fi
exec "$DOCKER" $DOCKER_OPTIONS
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment