浏览代码

Merge pull request #709 from aboch/de

Clean hosts entries on endpoint leave
Madhu Venugopal 9 年之前
父节点
当前提交
622534f958
共有 1 个文件被更改,包括 2 次插入0 次删除
  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
 		return err
 	}
 	}
 
 
+	sb.deleteHostsEntries(n.getSvcRecords(ep))
+
 	if sb.needDefaultGW() {
 	if sb.needDefaultGW() {
 		ep := sb.getEPwithoutGateway()
 		ep := sb.getEPwithoutGateway()
 		if ep == nil {
 		if ep == nil {