From 786f30107b0c63e8a42ca4b0d8d40621f45861c6 Mon Sep 17 00:00:00 2001 From: Ryan Liu Date: Tue, 21 Mar 2017 23:51:52 -0700 Subject: [PATCH] Fix nw sandbox leak when stopping detached container Signed-off-by: Ryan Liu --- daemon/container_operations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/container_operations.go b/daemon/container_operations.go index 72155f9785..b1dd4c3bb6 100644 --- a/daemon/container_operations.go +++ b/daemon/container_operations.go @@ -916,7 +916,7 @@ func (daemon *Daemon) releaseNetwork(container *container.Container) { settings := container.NetworkSettings.Networks container.NetworkSettings.Ports = nil - if sid == "" || len(settings) == 0 { + if sid == "" { return }