Fix nw sandbox leak when stopping detached container
Signed-off-by: Ryan Liu <ryanlyy@me.com> Upstream-commit: 786f30107b0c63e8a42ca4b0d8d40621f45861c6 Component: engine
This commit is contained in:
committed by
Alessandro Boch
parent
77daab9192
commit
65906b40c8
@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user