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

Update service DB on deletion of containers in bridge networks

Signed-off-by: Santhosh Manohar <santhosh@docker.com>
This commit is contained in:
Santhosh Manohar 2016-07-22 14:51:36 -07:00
parent 5da0b08e40
commit 902ead3109

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