fix the upstart script generated by get.docker.io (it was not starting dockerd on boot)
This commit is contained in:
parent
dcf9dfb129
commit
049d28868e
1 changed files with 7 additions and 1 deletions
|
@ -45,7 +45,13 @@ then
|
|||
echo "Upstart script already exists."
|
||||
else
|
||||
echo "Creating /etc/init/dockerd.conf..."
|
||||
echo "exec env LANG=\"en_US.UTF-8\" /usr/local/bin/docker -d" > /etc/init/dockerd.conf
|
||||
cat >/etc/init/dockerd.conf <<EOF
|
||||
description "Docker daemon"
|
||||
start on filesystem or runlevel [2345]
|
||||
stop on runlevel [!2345]
|
||||
respawn
|
||||
exec env LANG="en_US.UTF-8" /usr/local/bin/docker -d
|
||||
EOF
|
||||
fi
|
||||
|
||||
echo "Starting dockerd..."
|
||||
|
|
Loading…
Add table
Reference in a new issue