This sets up an idiomatic Go workspace in /opt/go with the source shared from the host directory in /opt/go/src/github.com/dotcloud/docker and docker installed into /opt/go Upstream-commit: a3ab89df2b3d9ba654ba85af5d71d063d401f23f Component: engine
13 lines
326 B
Plaintext
13 lines
326 B
Plaintext
description "Run dockerd"
|
|
|
|
stop on runlevel [!2345]
|
|
start on runlevel [3]
|
|
|
|
# if you want it to automatically restart if it crashes, leave the next line in
|
|
respawn
|
|
|
|
script
|
|
test -f /etc/default/locale && . /etc/default/locale || true
|
|
LANG=$LANG LC_ALL=$LANG /opt/go/bin/docker -d >> /var/log/dockerd 2>&1
|
|
end script
|