Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/docker/compose
/ functions
Functions
2,102 in github.com/docker/compose
⨍
Functions
2,102
◇
Types & classes
271
↓ 4 callers
Method
stop
(ctx context.Context, projectName string, options api.StopOptions, event api.ContainerEventListener)
pkg/compose/stop.go:33
↓ 4 callers
Method
visit
(key string, path []string, discovered []string, finished []string)
pkg/compose/dependencies.go:425
↓ 3 callers
Function
AlwaysOkPrompt
AlwaysOkPrompt returns a Prompt implementation that always returns true without user interaction.
pkg/compose/compose.go:186
↓ 3 callers
Method
Command
()
cmd/formatter/container.go:179
↓ 3 callers
Method
ContainerKill
(ctx context.Context, container string, options client.ContainerKillOptions)
pkg/dryrun/dryrunclient.go:137
↓ 3 callers
Method
ContainerStatPath
(ctx context.Context, container string, options client.ContainerStatPathOptions)
pkg/dryrun/dryrunclient.go:360
↓ 3 callers
Method
CopyToContainer
(ctx context.Context, container string, options client.CopyToContainerOptions)
pkg/dryrun/dryrunclient.go:197
↓ 3 callers
Function
Endpoint
Endpoint returns the Docker Desktop API socket endpoint advertised via the engine info labels, or "" when the active engine is not Docker Desktop.
internal/desktop/proxy.go:43
↓ 3 callers
Function
EphemeralPathMatcher
EphemeralPathMatcher filters out spurious changes that we don't want to rebuild on, like IDE temp/lock files. This isn't an ideal solution. In an ide
pkg/watch/ephemeral.go:29
↓ 3 callers
Method
Events
A channel to read off incoming file changes
pkg/watch/notify.go:46
↓ 3 callers
Method
ExecAttach
(ctx context.Context, execID string, config client.ExecAttachOptions)
pkg/dryrun/dryrunclient.go:336
↓ 3 callers
Method
ExecCreate
(ctx context.Context, container string, config client.ExecCreateOptions)
pkg/dryrun/dryrunclient.go:285
↓ 3 callers
Method
GetAuthConfig
(registryHostname string)
pkg/compose/pull.go:277
↓ 3 callers
Function
GetAuthConfigKey
GetAuthConfigKey special-cases using the full index address of the official index as the AuthConfig key, and uses the (host)name[:port] for private in
internal/registry/registry.go:39
↓ 3 callers
Method
Has
(v T)
pkg/utils/set.go:31
↓ 3 callers
Function
ImageDigestResolver
ImageDigestResolver creates a func able to resolve image digest from a docker ref,
pkg/compose/pull.go:259
↓ 3 callers
Function
InReverseDependencyOrder
InReverseDependencyOrder applies the function to the services of the project in reverse order of dependencies
pkg/compose/dependencies.go:92
↓ 3 callers
Method
Info
(ctx context.Context, options client.InfoOptions)
pkg/dryrun/dryrunclient.go:588
↓ 3 callers
Method
Load
(ctx context.Context, path string)
pkg/remote/git.go:75
↓ 3 callers
Method
Logs
Logs executes the equivalent to a `compose logs`
pkg/api/api.go:103
↓ 3 callers
Function
NetworkHash
NetworkHash computes the configuration hash for a network.
pkg/compose/hash.go:46
↓ 3 callers
Function
NewLogConsumer
NewLogConsumer creates a new LogConsumer
cmd/formatter/logs.go:47
↓ 3 callers
Function
NewPrompt
(stdin *streams.In, stdout *streams.Out)
cmd/prompt/prompt.go:36
↓ 3 callers
Method
Out
()
pkg/compose/compose.go:311
↓ 3 callers
Function
Quiet
()
cmd/display/quiet.go:25
↓ 3 callers
Method
Start
Start watching the paths set at init time
pkg/watch/notify.go:40
↓ 3 callers
Function
ToJSON
ToJSON return a string with the JSON representation of the interface{}
cmd/formatter/json.go:32
↓ 3 callers
Method
ToProject
ToProject loads a Compose project using the LoadProject API. Accepts optional cli.ProjectOptionsFn to control loader behavior.
cmd/compose/compose.go:311
↓ 3 callers
Function
VolumeHash
VolumeHash computes the configuration hash for a volume.
pkg/compose/hash.go:55
↓ 3 callers
Method
VolumeInspect
(ctx context.Context, volumeID string, options client.VolumeInspectOptions)
pkg/dryrun/dryrunclient.go:604
↓ 3 callers
Method
Volumes
Volumes executes the equivalent to a `docker volume ls`
pkg/api/api.go:149
↓ 3 callers
Method
WaitForCondition
WaitForCondition wait for predicate to execute to true
pkg/e2e/framework.go:456
↓ 3 callers
Method
WithServices
WithServices creates a cobra run command from a ProjectFunc based on configured project options and selected services
cmd/compose/compose.go:169
↓ 3 callers
Method
add
(path string)
pkg/watch/watcher_naive.go:263
↓ 3 callers
Method
build
(ctx context.Context, project *types.Project, options api.BuildOptions, localImages map[string]api.ImageSummar
pkg/compose/build.go:52
↓ 3 callers
Function
buildingEvent
buildingEvent creates a new Building in progress Resource
pkg/compose/progress.go:81
↓ 3 callers
Function
carriageReturn
()
cmd/formatter/ansi.go:58
↓ 3 callers
Function
containerLabels
(service string, oneOff bool)
pkg/compose/kill_test.go:125
↓ 3 callers
Function
defaultNetworkSettings
defaultNetworkSettings determines the container.NetworkMode and corresponding network.NetworkingConfig (nil if not applicable).
pkg/compose/create.go:521
↓ 3 callers
Method
doLogContainer
(ctx context.Context, consumer api.LogConsumer, name string, ctr container.InspectResponse, options api.LogOpt
pkg/compose/logs.go:125
↓ 3 callers
Function
dockerFilePath
(ctxName string, dockerfile string)
pkg/compose/build_bake.go:556
↓ 3 callers
Function
emptyObservedState
emptyObservedState returns an ObservedState with no containers/networks/volumes, suitable for executor tests that don't exercise service-reference res
pkg/compose/executor_test.go:126
↓ 3 callers
Function
errorEventf
errorEventf creates a new Error Resource with format message
pkg/compose/progress.go:46
↓ 3 callers
Function
extraLines
(s string)
cmd/formatter/shortcut.go:378
↓ 3 callers
Function
extractInterpolationVariablesFromModel
(ctx context.Context, dockerCli command.Cli, projectOptions *ProjectOptions, cmdEnvs []string)
cmd/compose/options.go:160
↓ 3 callers
Function
forEachContainerConcurrent
forEachContainerConcurrent runs fn for every container concurrently and waits for all goroutines.
pkg/compose/containers.go:181
↓ 3 callers
Function
getContainerName
(projectName string, service types.ServiceConfig, number int)
pkg/compose/convergence.go:121
↓ 3 callers
Function
getDefaultContainerName
(projectName, serviceName, index string)
pkg/compose/convergence.go:129
↓ 3 callers
Method
getPresenter
(container string)
cmd/formatter/logs.go:99
↓ 3 callers
Function
isAbs
IsAbs is a platform-agnostic wrapper for filepath.IsAbs. On Windows, golang filepath.IsAbs does not consider a path \windows\system32 as absolute as
pkg/compose/cp.go:332
↓ 3 callers
Function
isAbsTarget
(p string)
pkg/compose/create.go:1190
↓ 3 callers
Method
newPlanExecutor
newPlanExecutor constructs a planExecutor seeded from the observed state. Split out from executePlan so tests can inspect the executor's live state (e
pkg/compose/executor.go:78
↓ 3 callers
Function
parentDependentObserved
--- Service-reference resolution tests (issue #13878) --- When a service uses network_mode/ipc/pid: service:X or volumes_from: serviceName, the execu
pkg/compose/reconcile_test.go:708
↓ 3 callers
Method
printNavigationMenu
()
cmd/formatter/shortcut.go:146
↓ 3 callers
Function
resolveServiceReferences
resolveServiceReferences replaces references to other services with references to actual container IDs. It resolves VolumesFrom, NetworkMode, IPC and
pkg/compose/convergence.go:66
↓ 3 callers
Method
run
run walks the plan DAG, executing nodes in parallel where possible while respecting dependency edges. Emits progress events and handles group-based ev
pkg/compose/executor.go:90
↓ 3 callers
Method
runPlugin
(ctx context.Context, project *types.Project, service types.ServiceConfig, command string)
pkg/compose/plugins.go:63
↓ 3 callers
Function
selectEventProcessor
selectEventProcessor picks the EventProcessor for Compose progress rendering. In auto mode we probe Err() (not Out()) because the renderer writes to
cmd/compose/compose.go:647
↓ 3 callers
Method
sorted
sorted sorts containers in place by canonical name and returns the (same) slice.
pkg/compose/containers.go:192
↓ 3 callers
Function
sortedMapKeys
(m map[string]V)
pkg/compose/publish.go:397
↓ 3 callers
Function
stdinfo
(dockerCli command.Cli)
cmd/compose/compose.go:635
↓ 3 callers
Function
toObservedContainer
toObservedContainer extracts the relevant fields from a container.Summary, parsing labels into typed values.
pkg/compose/observed_state.go:163
↓ 3 callers
Function
unsetEnv
unsetEnv removes an env var for the lifetime of the test, restoring its prior state on cleanup. t.Setenv("", "") is not equivalent to unset: compose-g
cmd/compose/hooks_test.go:306
↓ 3 callers
Function
validateGitSubDir
validateGitSubDir ensures a subdirectory path is contained within the base directory and doesn't escape via path traversal. Unlike validatePathInBase
pkg/remote/git.go:140
↓ 3 callers
Function
validatePathInBase
validatePathInBase ensures a file path is contained within the base directory, as OCI artifact resources must all live within the same folder.
pkg/remote/oci.go:49
↓ 3 callers
Function
waitPreStart
(ctx context.Context, serviceName string, index int, waitRes client.ContainerWaitResult)
pkg/compose/pre_start.go:212
↓ 3 callers
Function
wcLineCount
wcLineCount parses the leading integer from a `wc -l <file>` stdout, whose shape is "<count> <filename>". Fails the test if the output cannot be parse
pkg/e2e/hooks_test.go:29
↓ 3 callers
Function
writeQuoted
writeQuoted writes "str" to builder
pkg/compose/viz.go:137
↓ 2 callers
Method
AddAll
(v ...T)
pkg/utils/set.go:40
↓ 2 callers
Method
AddEdge
AddEdge adds a relationship of dependency between vertices `source` and `destination`
pkg/compose/dependencies.go:309
↓ 2 callers
Method
AddVertex
AddVertex adds a vertex to the Graph
pkg/compose/dependencies.go:300
↓ 2 callers
Method
BaseEnvironment
BaseEnvironment provides the minimal environment variables used across all Docker / Compose commands.
pkg/e2e/framework.go:266
↓ 2 callers
Function
BatchDebounceEvents
BatchDebounceEvents groups identical file events within a sliding time window and writes the results to the returned channel. The returned channel is
pkg/watch/debounce.go:33
↓ 2 callers
Method
BuildKitEnabled
BuildKitEnabled determines whether BuildKit should be used for builds Checks DOCKER_BUILDKIT env var, config, and daemon capabilities
pkg/api/context.go:31
↓ 2 callers
Method
Close
Close releases any open connections.
internal/desktop/client.go:102
↓ 2 callers
Method
Commit
Create a new image from a service container's changes
pkg/api/api.go:145
↓ 2 callers
Function
ConfigFromDockerContext
ConfigFromDockerContext inspects extra metadata included as part of the specified Docker context to try and extract a valid OTLP client configuration.
internal/tracing/docker_context.go:81
↓ 2 callers
Method
Confirm
(message string, defaultValue bool)
cmd/prompt/prompt.go:33
↓ 2 callers
Function
Convert
Convert transforms standalone docker-compose args into CLI plugin compliant ones
cmd/compatibility/convert.go:56
↓ 2 callers
Method
CopyFromContainer
(ctx context.Context, container string, options client.CopyFromContainerOptions)
pkg/dryrun/dryrunclient.go:190
↓ 2 callers
Function
DescriptorForComposeFile
(path string, content []byte)
internal/oci/push.go:71
↓ 2 callers
Function
DesiredWindowsBufferSize
()
pkg/watch/notify.go:91
↓ 2 callers
Function
DialEndpoint
(ctx context.Context, endpoint string)
internal/memnet/conn.go:26
↓ 2 callers
Method
Diff
(other Set[T])
pkg/utils/set.go:68
↓ 2 callers
Method
Event
(e api.Resource)
cmd/display/json.go:55
↓ 2 callers
Method
ExecStart
(ctx context.Context, execID string, config client.ExecStartOptions)
pkg/dryrun/dryrunclient.go:298
↓ 2 callers
Method
ExitCode
()
cmd/formatter/container.go:196
↓ 2 callers
Method
FeatureFlags
(ctx context.Context)
internal/desktop/client.go:143
↓ 2 callers
Function
Get
Get retrieves a Named OCI resource and returns OCI Descriptor and Manifest
internal/oci/resolver.go:77
↓ 2 callers
Method
GetTimeout
()
cmd/compose/create.go:157
↓ 2 callers
Method
ImagePull
(ctx context.Context, ref string, options client.ImagePullOptions)
pkg/dryrun/dryrunclient.go:219
↓ 2 callers
Method
Images
Images executes the equivalent of a `compose images`
pkg/api/api.go:133
↓ 2 callers
Function
IsChild
(dir string, file string)
internal/paths/paths.go:25
↓ 2 callers
Function
IsFeatureActive
IsFeatureActive reports whether Docker Desktop is the active engine and the given feature flag is enabled. Returns false silently on any failure — the
internal/desktop/client.go:182
↓ 2 callers
Method
List
List executes the equivalent to a `docker stack ls`
pkg/api/api.go:107
↓ 2 callers
Method
Load
(ctx context.Context, client *desktop.Client)
internal/experimental/experimental.go:50
↓ 2 callers
Function
LoadDockerIgnore
(build *types.BuildConfig)
pkg/watch/dockerignore.go:68
↓ 2 callers
Method
LogsForContainer
(containerName string)
pkg/compose/logs_test.go:243
↓ 2 callers
Method
MarshalJSON
MarshalJSON makes ContainerContext implement json.Marshaler
cmd/formatter/container.go:134
↓ 2 callers
Method
NetworkCreate
(ctx context.Context, name string, options client.NetworkCreateOptions)
pkg/dryrun/dryrunclient.go:255
← previous
next →
201–300 of 2,102, ranked by callers