From 622d9c77b5e4d4ad55737917d0a1d2ea08527f44 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Thu, 4 Apr 2013 12:12:46 -0700 Subject: [PATCH] fix(app-emulation/docker): add lxcbr0 on startup lxcbr0 is required for docker networking to work. Ensure that we get that setup on startup and tear it down on stop. https://github.com/dotcloud/docker/issues/219 http://stackoverflow.com/questions/15768121/docker-net-no-such-interface --- .../coreos-overlay/app-emulation/docker/files/docker.service | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service index 0c7b77e818..c7aa195a31 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service @@ -1,5 +1,9 @@ [Service] +ExecStartPre=/sbin/brctl addbr lxcbr0 +ExecStartPre=/bin/ifconfig lxcbr0 10.65.41.1 ExecStart=/usr/bin/docker -d +ExecStopPost=/bin/ifconfig lxcbr0 down +ExecStopPost=/sbin/brctl delbr lxcbr0 [Install] WantedBy=multi-user.target