Merge pull request #1673 from xdissent/1659-upstart-order

Start docker after lxc-net to prevent ip forwarding race
This commit is contained in:
Daniel Mizyrycki 2013-08-30 16:05:40 -07:00
Родитель 969e48dd5a 3f141e1fd3
Коммит 212b582362
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -47,7 +47,7 @@ else
echo "Creating /etc/init/dockerd.conf..." echo "Creating /etc/init/dockerd.conf..."
cat >/etc/init/dockerd.conf <<EOF cat >/etc/init/dockerd.conf <<EOF
description "Docker daemon" description "Docker daemon"
start on filesystem or runlevel [2345] start on filesystem and started lxc-net
stop on runlevel [!2345] stop on runlevel [!2345]
respawn respawn
exec /usr/local/bin/docker -d exec /usr/local/bin/docker -d

Просмотреть файл

@ -52,7 +52,7 @@ private PaaS, service-oriented architectures, etc."
UPSTART_SCRIPT='description "Docker daemon" UPSTART_SCRIPT='description "Docker daemon"
start on filesystem or runlevel [2345] start on filesystem and started lxc-net
stop on runlevel [!2345] stop on runlevel [!2345]
respawn respawn

Просмотреть файл

@ -1,6 +1,6 @@
description "Run docker" description "Run docker"
start on filesystem or runlevel [2345] start on filesystem and started lxc-net
stop on runlevel [!2345] stop on runlevel [!2345]
respawn respawn