Browse Source

Merge pull request #1347 from sanimej/sd

Update service DB on deletion of containers in bridge networks
Madhu Venugopal 9 năm trước cách đây
mục cha
commit
5fee2c5be9
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  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
 	// unwatch for service records
-	if !n.getController().isAgent() {
-		n.getController().unWatchSvcRecord(ep)
-	}
+	n.getController().unWatchSvcRecord(ep)
 
 
 	if err = ep.deleteEndpoint(force); err != nil && !force {
 	if err = ep.deleteEndpoint(force); err != nil && !force {
 		return err
 		return err