From c52889db27a2af09ed7f6c92f2d6c6fd9737bf63 Mon Sep 17 00:00:00 2001 From: Jeffrey Bolle Date: Sat, 24 May 2014 16:04:57 +0100 Subject: [PATCH] Ensure networking is up before starting docker This resolves a problem that I have been having where docker starts before networking is up. See issue #5944 for more details. Docker-DCO-1.1-Signed-off-by: Jeffrey Bolle (github: jeffreybolle) --- contrib/init/upstart/docker.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/init/upstart/docker.conf b/contrib/init/upstart/docker.conf index db00e4f47f..5a3f88887e 100644 --- a/contrib/init/upstart/docker.conf +++ b/contrib/init/upstart/docker.conf @@ -1,6 +1,6 @@ description "Docker daemon" -start on local-filesystems +start on (local-filesystems and net-device-up IFACE!=lo) stop on runlevel [!2345] limit nofile 524288 1048576 limit nproc 524288 1048576