mirror of
https://github.com/docker/compose.git
synced 2026-11-17 13:45:39 +00:00
docs(compose): describe dependency_wait.go and fix the header of service_containers.go
The header of service_containers.go still listed the dependency waits among what it covers. Comments only. Part of #14081 Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
b81649f428
commit
af91bc46a9
2 changed files with 8 additions and 2 deletions
|
|
@ -31,6 +31,12 @@ import (
|
|||
"github.com/docker/compose/v5/pkg/api"
|
||||
)
|
||||
|
||||
// This file gathers the waits on depends_on conditions: the polling of a
|
||||
// dependency's containers (waitDependency and the per-condition checks), shared
|
||||
// by the plan's OpWaitCondition nodes and by the commands that wait outside a
|
||||
// plan (waitDependencies: restart, run and the --wait verification of up and
|
||||
// start), and the gate deciding which dependencies need a wait at all.
|
||||
|
||||
// ServiceConditionRunningOrHealthy is a service condition on status running or healthy
|
||||
const ServiceConditionRunningOrHealthy = "running_or_healthy"
|
||||
|
||||
|
|
|
|||
|
|
@ -40,8 +40,8 @@ import (
|
|||
// create/up/start) and by the commands that still walk the dependency order
|
||||
// themselves (dependencies.go: restart, stop, down and the classic build). It
|
||||
// covers container naming, resolution of service references (volumes_from,
|
||||
// network_mode/ipc/pid, links), dependency waiting and container creation
|
||||
// through the Docker API.
|
||||
// network_mode/ipc/pid, links) and container creation through the Docker API;
|
||||
// the waits on depends_on conditions are in dependency_wait.go.
|
||||
|
||||
const (
|
||||
doubledContainerNameWarning = "WARNING: The %q service is using the custom container name %q. " +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue