Merge pull request #12331 from coolljt0725/fix_panic_release_nil_interface
Fix daemon panic when release a nil network interface Upstream-commit: 9a0a4ac02f92f9fb21b88b9aeced103a0e5e3c4d Component: engine
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user