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

Method ContainerByID

docker/daemon.go:62–64  ·  view source on GitHub ↗

ContainerByID returns the container with the given ID

(cid string)

Source from the content-addressed store, hash-verified

60
61// ContainerByID returns the container with the given ID
62func (daemon *DockerDaemon) ContainerByID(cid string) *Container {
63 return daemon.store().Get(cid)
64}
65
66// DiskUsage returns reported Docker disk usage
67func (daemon *DockerDaemon) DiskUsage() (dockerTypes.DiskUsage, error) {

Callers

nothing calls this directly

Calls 2

storeMethod · 0.95
GetMethod · 0.65

Tested by

no test coverage detected