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

Method containersForServices

pkg/compose/reconcile.go:358–364  ·  view source on GitHub ↗

containersForServices returns all observed containers belonging to the given service names.

(services []string)

Source from the content-addressed store, hash-verified

356// containersForServices returns all observed containers belonging to the given
357// service names.
358func (r *reconciler) containersForServices(services []string) []ObservedContainer {
359 var result []ObservedContainer
360 for _, svc := range services {
361 result = append(result, r.observed.Containers[svc]...)
362 }
363 return result
364}
365
366// reconcileContainers processes each service in dependency order, comparing
367// the desired scale and configuration with observed containers.

Callers 2

planRecreateNetworkMethod · 0.95
planRecreateVolumeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected