This reverts commit b6430ba41388f0300ceea95c10738cbe1a9a7b10. Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
@@ -384,7 +384,7 @@ func (c *client) Exec(ctx context.Context, containerID, processID string, spec *
defer close(stdinCloseSync)
if err = p.Start(ctx); err != nil {
- p.Delete(ctx)
+ p.Delete(context.Background())
ctr.deleteProcess(processID)
return -1, wrapError(err)
}