findByImage method

List<Container> findByImage(
  1. Image image, {
  2. bool excludeStopped = false,
})

Finds the list of containers that where created from the image given by image. By default we include stopped containers.

Implementation

// if [excludeStopped] is true then exclude containers that are not running.
List<Container> findByImage(Image image, {bool excludeStopped = false}) =>
    findByImageid(image.imageid, excludeStopped: excludeStopped);