MCPcopy
hub / github.com/docker/compose / isNotOneOff

Function isNotOneOff

pkg/compose/containers.go:160–163  ·  view source on GitHub ↗
(c container.Summary)

Source from the content-addressed store, hash-verified

158}
159
160func isNotOneOff(c container.Summary) bool {
161 v, ok := c.Labels[api.OneoffLabel]
162 return !ok || v == "False"
163}
164
165func isNotRunning(c container.Summary) bool {
166 return c.State != container.StateRunning

Callers 1

collectObservedStateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected