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

Properly cleanup ingress sandbox in controller

When ingress sandbox is removed, properly cleanup the reference in the
controller.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
This commit is contained in:
Jana Radhakrishnan 2016-06-10 08:58:19 -07:00
parent 562fd97f8a
commit 8d1adbd665

View file

@ -245,6 +245,9 @@ func (sb *sandbox) delete(force bool) error {
}
c.Lock()
if sb.ingress {
c.ingressSandbox = nil
}
delete(c.sandboxes, sb.ID())
c.Unlock()