From 902ead310916e5757e95d59ddb07f07cc981ef64 Mon Sep 17 00:00:00 2001 From: Santhosh Manohar Date: Fri, 22 Jul 2016 14:51:36 -0700 Subject: [PATCH] Update service DB on deletion of containers in bridge networks Signed-off-by: Santhosh Manohar --- libnetwork/endpoint.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libnetwork/endpoint.go b/libnetwork/endpoint.go index 418017f80d..d52c6bce95 100644 --- a/libnetwork/endpoint.go +++ b/libnetwork/endpoint.go @@ -776,9 +776,7 @@ func (ep *endpoint) Delete(force bool) error { }() // unwatch for service records - if !n.getController().isAgent() { - n.getController().unWatchSvcRecord(ep) - } + n.getController().unWatchSvcRecord(ep) if err = ep.deleteEndpoint(force); err != nil && !force { return err