1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #1347 from sanimej/sd

Update service DB on deletion of containers in bridge networks
This commit is contained in:
Madhu Venugopal 2016-07-22 17:51:28 -07:00 committed by GitHub
commit 5fee2c5be9

View file

@ -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