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

Function isService

pkg/compose/containers.go:138–143  ·  pkg/compose/containers.go::isService
(services ...string)

Source from the content-addressed store, hash-verified

136}
137
138func isService(services ...string) containerPredicate {
139 return func(c container.Summary) bool {
140 service := c.Labels[api.ServiceLabel]
141 return slices.Contains(services, service)
142 }
143}
144
145// isOrphaned is a predicate to select containers without a matching service definition in compose project
146func isOrphaned(project *types.Project) containerPredicate {

Callers 13

LogsMethod · 0.85
stopMethod · 0.85
TopMethod · 0.85
restartMethod · 0.85
RemoveMethod · 0.85
waitDependenciesMethod · 0.85
startServiceMethod · 0.85
killMethod · 0.85
PsMethod · 0.85
getContainersMethod · 0.85
downMethod · 0.85
pauseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected