MCPcopy
hub / github.com/moncho/dry / Containers

Method Containers

docker/daemon.go:52–59  ·  view source on GitHub ↗

Containers returns the containers known by the daemon

(filters []ContainerFilter, mode SortMode)

Source from the content-addressed store, hash-verified

50
51// Containers returns the containers known by the daemon
52func (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
62func (daemon *DockerDaemon) ContainerByID(cid string) *Container {

Callers 4

ComposeProjectsMethod · 0.95
ComposeServicesMethod · 0.95

Calls 4

storeMethod · 0.95
SortContainersFunction · 0.85
ApplyMethod · 0.80
ListMethod · 0.65

Tested by

no test coverage detected