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

Method reconcileContainers

pkg/compose/reconcile.go:368–377  ·  view source on GitHub ↗

reconcileContainers processes each service in dependency order, comparing the desired scale and configuration with observed containers.

()

Source from the content-addressed store, hash-verified

366// reconcileContainers processes each service in dependency order, comparing
367// the desired scale and configuration with observed containers.
368func (r *reconciler) reconcileContainers() error {
369 // Build dependency graph and process in order
370 graph, err := NewGraph(r.project, ServiceStopped)
371 if err != nil {
372 return err
373 }
374
375 // Visit in dependency order (leaves first = services with no deps)
376 return r.visitInDependencyOrder(graph)
377}
378
379// visitInDependencyOrder processes services from leaves to roots so that
380// dependencies are reconciled before the services that depend on them.

Callers 1

reconcileFunction · 0.95

Calls 2

NewGraphFunction · 0.85

Tested by

no test coverage detected