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
This commit is contained in:
Brandon Philips 2013-04-04 12:12:46 -07:00
parent fd9b373e12
commit 622d9c77b5

View File

@ -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