浏览代码

Merge pull request #1347 from sanimej/sd

Update service DB on deletion of containers in bridge networks
Madhu Venugopal 9 年之前
父节点
当前提交
5fee2c5be9
共有 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