Explorar o código

Update service DB on deletion of containers in bridge networks

Signed-off-by: Santhosh Manohar <santhosh@docker.com>
Santhosh Manohar %!s(int64=9) %!d(string=hai) anos
pai
achega
902ead3109
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      libnetwork/endpoint.go

+ 1 - 3
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