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

Ignoring Driver failure on Leave.

After some delibration, we think it is better not to hold onto the
sandbox resources if an explicit call to Leave fails by the Driver.

Signed-off-by: Madhu Venugopal <madhu@docker.com>
This commit is contained in:
Madhu Venugopal 2015-05-01 15:33:29 -07:00
parent 284c1713e8
commit 95c5eb2856

View file

@ -213,14 +213,10 @@ func (ep *endpoint) Leave(containerID string, options ...EndpointOption) error {
n := ep.network
err := n.driver.Leave(n.id, ep.id, ep.context)
if err != nil {
return err
}
ep.network.ctrlr.sandboxRm(ep.container.data.SandboxKey)
ep.container = nil
ep.context = nil
return nil
return err
}
func (ep *endpoint) Delete() error {