code: func (e *Executor) Restore(id string, stdout, stderr io.WriteCloser) (bool, error) {
  	alive, _, p, err := e.client.Restore(context.Background(), id, attachStreamsFunc(stdout, stderr))
  	if err != nil && !errdefs.IsNotFound(err) {
  		return false, err
  	}
  	if !alive {
  		deleteTaskAndContainer(context.Background(), e.client, id, p)
  	}
  	return alive, nil
  }
docs: // Restore restores a container