From 8b3548129220a8c79342a12717d87667927df4c9 Mon Sep 17 00:00:00 2001 From: Lei Jitang Date: Mon, 13 Apr 2015 20:24:10 +0800 Subject: [PATCH] Fix daemon panic when release a nil network interface Signed-off-by: Lei Jitang --- daemon/networkdriver/bridge/driver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/networkdriver/bridge/driver.go b/daemon/networkdriver/bridge/driver.go index dabb1165e7..4eebb9d044 100644 --- a/daemon/networkdriver/bridge/driver.go +++ b/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 {