mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Default bridge need not have persistence in bridge driver
Signed-off-by: Madhu Venugopal <madhu@docker.com>
This commit is contained in:
parent
648393ef5f
commit
750671e633
2 changed files with 5 additions and 2 deletions
|
@ -193,7 +193,7 @@ func (ncfg *networkConfiguration) Exists() bool {
|
|||
}
|
||||
|
||||
func (ncfg *networkConfiguration) Skip() bool {
|
||||
return false
|
||||
return ncfg.DefaultBridge
|
||||
}
|
||||
|
||||
func (ncfg *networkConfiguration) New() datastore.KVObject {
|
||||
|
|
|
@ -623,7 +623,10 @@ func (n *network) deleteNetwork() error {
|
|||
if _, ok := err.(types.ForbiddenError); ok {
|
||||
return err
|
||||
}
|
||||
log.Warnf("driver error deleting network %s : %v", n.name, err)
|
||||
|
||||
if _, ok := err.(types.MaskableError); !ok {
|
||||
log.Warnf("driver error deleting network %s : %v", n.name, err)
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue