mirror of
https://github.com/clearlinux/docker.git
synced 2026-11-19 12:26:03 +00:00
Fix daemon panic when release a nil network interface
Signed-off-by: Lei Jitang <leijitang@huawei.com>
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