瀏覽代碼

Update service DB on deletion of containers in bridge networks

Signed-off-by: Santhosh Manohar <santhosh@docker.com>
Santhosh Manohar 9 年之前
父節點
當前提交
902ead3109
共有 1 個文件被更改,包括 1 次插入3 次删除
  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