Sfoglia il codice sorgente

Merge pull request #12331 from coolljt0725/fix_panic_release_nil_interface

Fix daemon panic when release a nil network interface
Michael Crosby 10 anni fa
parent
commit
9a0a4ac02f
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      daemon/networkdriver/bridge/driver.go

+ 1 - 0
daemon/networkdriver/bridge/driver.go

@@ -583,6 +583,7 @@ func Release(id string) {
 
 	if containerInterface == nil {
 		logrus.Warnf("No network information to release for %s", id)
+		return
 	}
 
 	for _, nat := range containerInterface.PortMappings {