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:
parent
f947d823f0
commit
786f30107b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue