code: func (s *Server) UpdateContainerResources(ctx context.Context, req *pb.UpdateContainerResourcesRequest) (resp *pb.UpdateContainerResourcesResponse, err error) {
  	const operation = "update_container_resources"
  	defer func() {
  		recordOperation(operation, time.Now())
  		recordError(operation, err)
  	}()
  	logrus.Debugf("UpdateContainerResources %+v", req)
  
  	c, err := s.GetContainerFromShortID(req.GetContainerId())
  	if err != nil {
  		return nil, err
  	}
  	state := c.State()
  	if !(state.Status == oci.ContainerStateRunning || state.Status == oci.ContainerStateCreated) {
  		return nil, fmt.Errorf("container %s is not running or created state: %s", c.ID(), state.Status)
  	}
  
  	resources := toOCIResources(req.GetLinux())
  	if err := s.Runtime().UpdateContainer(c, resources); err != nil {
  		return nil, err
  	}
  	return &pb.UpdateContainerResourcesResponse{}, nil
  }
docs: // UpdateContainerResources updates ContainerConfig of the container.