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

Merge pull request #709 from aboch/de

Clean hosts entries on endpoint leave
This commit is contained in:
Madhu Venugopal 2015-10-24 23:24:46 +02:00
commit 622534f958

View file

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