code: func (m *kubeGenericRuntimeManager) getKubeletContainers(allContainers bool) ([]*runtimeapi.Container, error) {
  	filter := &runtimeapi.ContainerFilter{}
  	if !allContainers {
  		filter.State = &runtimeapi.ContainerStateValue{
  			State: runtimeapi.ContainerState_CONTAINER_RUNNING,
  		}
  	}
  
  	containers, err := m.runtimeService.ListContainers(filter)
  	if err != nil {
  		klog.Errorf("getKubeletContainers failed: %v", err)
  		return nil, err
  	}
  
  	return containers, nil
  }
docs: // getKubeletContainers lists containers managed by kubelet.
  // The boolean parameter specifies whether returns all containers including
  // those already exited and dead containers (used for garbage collection).