1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix nw sandbox leak when stopping detached container

Signed-off-by: Ryan Liu <ryanlyy@me.com>
This commit is contained in:
Ryan Liu 2017-03-21 23:51:52 -07:00 committed by Alessandro Boch
parent f947d823f0
commit 786f30107b

View file

@ -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
}