mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
bridge: fix error handling for stale default gateways
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
This commit is contained in:
parent
556f9f1348
commit
72eed906b8
1 changed files with 1 additions and 1 deletions
|
@ -598,7 +598,7 @@ func (d *driver) checkConflict(config *networkConfiguration) error {
|
||||||
nwConfig := nw.config
|
nwConfig := nw.config
|
||||||
nw.Unlock()
|
nw.Unlock()
|
||||||
if err := nwConfig.Conflicts(config); err != nil {
|
if err := nwConfig.Conflicts(config); err != nil {
|
||||||
if config.DefaultBridge {
|
if nwConfig.DefaultBridge {
|
||||||
// We encountered and identified a stale default network
|
// We encountered and identified a stale default network
|
||||||
// We must delete it as libnetwork is the source of truth
|
// We must delete it as libnetwork is the source of truth
|
||||||
// The default network being created must be the only one
|
// The default network being created must be the only one
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue