code: func (r *runtimeOCI) UpdateContainer(c *Container, res *rspec.LinuxResources) error {
  	cmd := exec.Command(r.path, rootFlag, r.root, "update", "--resources", "-", c.id)
  	var stdout bytes.Buffer
  	var stderr bytes.Buffer
  	cmd.Stdout = &stdout
  	cmd.Stderr = &stderr
  	if v, found := os.LookupEnv("XDG_RUNTIME_DIR"); found {
  		cmd.Env = append(cmd.Env, fmt.Sprintf("XDG_RUNTIME_DIR=%s", v))
  	}
  	jsonResources, err := json.Marshal(res)
  	if err != nil {
  		return err
  	}
  	cmd.Stdin = bytes.NewReader(jsonResources)
  
  	if err := cmd.Run(); err != nil {
  		return fmt.Errorf("updating resources for container %q failed: %v %v (%v)", c.id, stderr.String(), stdout.String(), err)
  	}
  	return nil
  }
docs: // UpdateContainer updates container resources