mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #2176 from ctelfer/remove-net-attach-info
Remove non-service cluster info on sbLeave
This commit is contained in:
commit
9310db12ae
1 changed files with 2 additions and 4 deletions
|
@ -752,11 +752,9 @@ func (ep *endpoint) sbLeave(sb *sandbox, force bool, options ...EndpointOption)
|
|||
}
|
||||
}
|
||||
|
||||
if ep.svcID != "" {
|
||||
if err := ep.deleteServiceInfoFromCluster(sb, true, "sbLeave"); err != nil {
|
||||
logrus.Warnf("Failed to clean up service info on container %s disconnect: %v", ep.name, err)
|
||||
}
|
||||
}
|
||||
|
||||
if err := sb.clearNetworkResources(ep); err != nil {
|
||||
logrus.Warnf("Failed to clean up network resources on container %s disconnect: %v", ep.name, err)
|
||||
|
|
Loading…
Add table
Reference in a new issue