code: func (r *runtimeVM) UpdateContainer(c *Container, res *rspec.LinuxResources) error {
  	logrus.Debug("runtimeVM.updateContainer() start")
  	defer logrus.Debug("runtimeVM.updateContainer() end")
  
  	// Lock the container
  	c.opLock.Lock()
  	defer c.opLock.Unlock()
  
  	// Convert resources into protobuf Any type
  	any, err := typeurl.MarshalAny(res)
  	if err != nil {
  		return err
  	}
  
  	if _, err := r.task.Update(r.ctx, &task.UpdateTaskRequest{
  		ID:        c.ID(),
  		Resources: any,
  	}); err != nil {
  		return errdefs.FromGRPC(err)
  	}
  
  	return nil
  }
docs: // UpdateContainer updates container resources