1
0
Fork 0
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:
Madhu Venugopal 2015-10-10 09:00:35 -07:00
parent 648393ef5f
commit 750671e633
2 changed files with 5 additions and 2 deletions

View file

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

View file

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