Browse code

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 <jeffreybolle@gmail.com> (github: jeffreybolle)

Jeffrey Bolle authored on 2014/05/25 00:04:57
Showing 1 changed files
... ...
@@ -1,6 +1,6 @@
1 1
 description "Docker daemon"
2 2
 
3
-start on local-filesystems
3
+start on (local-filesystems and net-device-up IFACE!=lo)
4 4
 stop on runlevel [!2345]
5 5
 limit nofile 524288 1048576
6 6
 limit nproc 524288 1048576