MCPcopy Create free account
hub / github.com/docker/compose / RunningFor

Method RunningFor

cmd/formatter/container.go:191–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189}
190
191func (c *ContainerContext) RunningFor() string {
192 createdAt := time.Unix(c.c.Created, 0)
193 return units.HumanDuration(time.Now().UTC().Sub(createdAt)) + " ago"
194}
195
196func (c *ContainerContext) ExitCode() int {
197 return c.c.ExitCode

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected