Browse Source

Merge pull request #709 from aboch/de

Clean hosts entries on endpoint leave
Madhu Venugopal 9 years ago
parent
commit
622534f958
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libnetwork/endpoint.go

+ 2 - 0
libnetwork/endpoint.go

@@ -512,6 +512,8 @@ func (ep *endpoint) sbLeave(sbox Sandbox, options ...EndpointOption) error {
 		return err
 	}
 
+	sb.deleteHostsEntries(n.getSvcRecords(ep))
+
 	if sb.needDefaultGW() {
 		ep := sb.getEPwithoutGateway()
 		if ep == nil {