|
@@ -245,6 +245,10 @@ func (c *controller) sandboxCleanup(activeSandboxes map[string]interface{}) {
|
|
|
ep = &endpoint{id: eps.Eid, network: n, sandboxID: sbs.ID}
|
|
|
}
|
|
|
}
|
|
|
+ if _, ok := activeSandboxes[sb.ID()]; ok && err != nil {
|
|
|
+ logrus.Errorf("failed to restore endpoint %s in %s for container %s due to %v", eps.Eid, eps.Nid, sb.ContainerID(), err)
|
|
|
+ continue
|
|
|
+ }
|
|
|
heap.Push(&sb.endpoints, ep)
|
|
|
}
|
|
|
|