Containers returns the containers known by the daemon
(filters []ContainerFilter, mode SortMode)
| 50 | |
| 51 | // Containers returns the containers known by the daemon |
| 52 | func (daemon *DockerDaemon) Containers(filters []ContainerFilter, mode SortMode) []*Container { |
| 53 | c := daemon.store().List() |
| 54 | for _, filter := range filters { |
| 55 | c = filter.Apply(c) |
| 56 | } |
| 57 | SortContainers(c, mode) |
| 58 | return c |
| 59 | } |
| 60 | |
| 61 | // ContainerByID returns the container with the given ID |
| 62 | func (daemon *DockerDaemon) ContainerByID(cid string) *Container { |
no test coverage detected