1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/runtime/networkdriver
Daniel Norberg 336199a877 net: do not create -b/--bridge specified bridge
If the bridge specified using -b/--bridge doesn't
exist, fail instead of attempting to create it.

This is consistent with the docker documentation
on -b/--bridge: "Attach containers to a pre
existing network bridge". 

It is also less surprising in an environment where
the operator expected the bridge to be properly
set up before docker starts and expects docker to
fail fast if the bridge was not up instead of
masking this error and coming up in some
potentially broken state.

With this patch, docker still creates docker0 if
needed and no bridge was explicitly specified.

Docker-DCO-1.1-Signed-off-by: Daniel Norberg <daniel.norberg@gmail.com> (github: danielnorberg)
2014-04-10 11:11:17 -04:00
..
bridge net: do not create -b/--bridge specified bridge 2014-04-10 11:11:17 -04:00
ipallocator Gofmt imports 2014-03-17 11:41:28 -07:00
portallocator Update test to reallocate port 2014-04-01 07:27:34 +00:00
portmapper Move networking drivers into runtime top level pkg 2014-03-17 11:40:12 -07:00
network.go Move networking drivers into runtime top level pkg 2014-03-17 11:40:12 -07:00
network_test.go Move networking drivers into runtime top level pkg 2014-03-17 11:40:12 -07:00
utils.go Move networking drivers into runtime top level pkg 2014-03-17 11:40:12 -07:00