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:
commit
622534f958
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue