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
↓ 2 callers
Method
NetworkDisconnect
(ctx context.Context, networkName string, options client.NetworkDisconnectOptions)
pkg/dryrun/dryrunclient.go:261
↓ 2 callers
Method
Networks
Networks returns a comma-separated string of networks that the container is attached to.
cmd/formatter/container.go:277
↓ 2 callers
Function
NewClient
NewClient creates a Desktop integration client for the provided in-memory socket address (AF_UNIX or named pipe).
internal/desktop/client.go:82
↓ 2 callers
Method
NewCmdWithEnv
NewCmdWithEnv creates a cmd object configured with the test environment set with additional env vars
pkg/e2e/framework.go:297
↓ 2 callers
Function
NewCompositeMatcher
(matchers ...PathMatcher)
pkg/watch/notify.go:106
↓ 2 callers
Function
NewDir
NewDir creates a new TempDir in the default location (typically $TMPDIR)
pkg/watch/temp.go:30
↓ 2 callers
Function
NewDirAtRoot
NewDirAtRoot creates a new TempDir at the given root.
pkg/watch/temp.go:35
↓ 2 callers
Function
NewFileEvent
(p string)
pkg/watch/notify.go:31
↓ 2 callers
Function
NewGitRemoteLoader
(dockerCli command.Cli, offline bool)
pkg/remote/git.go:54
↓ 2 callers
Function
NewOCIRemoteLoader
(dockerCli command.Cli, offline bool, options api.OCIOptions)
pkg/remote/oci.go:84
↓ 2 callers
Function
NewSet
(v ...T)
pkg/utils/set.go:19
↓ 2 callers
Function
NewTempDirFixture
(t testing.TB)
pkg/watch/temp_dir_fixture.go:41
↓ 2 callers
Function
NewWatcher
(paths []string)
pkg/watch/notify.go:83
↓ 2 callers
Method
OnExit
()
cmd/compose/up.go:102
↓ 2 callers
Function
ProxyTransportFor
ProxyTransportFor discovers the Docker Desktop endpoint via apiClient and returns the matching transport, or nil when DD is not active or discovery fa
internal/desktop/proxy.go:180
↓ 2 callers
Method
Ps
Ps executes the equivalent to a `compose ps`
pkg/api/api.go:105
↓ 2 callers
Function
Push
(ctx context.Context, resolver remotes.Resolver, ref reference.Named, descriptor spec.Descriptor)
internal/oci/resolver.go:130
↓ 2 callers
Method
Push
Push executes the equivalent to a `compose push`
pkg/api/api.go:87
↓ 2 callers
Function
Read
Read reads the "PID file" at path, and returns the PID if it contains a valid PID of a running process, or 0 otherwise. It returns an error when faili
internal/pidfile/pidfile.go:37
↓ 2 callers
Method
Read
Read is a thread safe version of bytes.Buffer::Read
pkg/utils/safebuffer.go:37
↓ 2 callers
Function
ReplaceExtendsFile
ReplaceExtendsFile changes value for service.extends.file in input yaml stream, preserving formatting
pkg/compose/transform/replace.go:26
↓ 2 callers
Function
RequireServiceState
RequireServiceState ensures that the container is in the expected state (running or exited).
pkg/e2e/assert.go:30
↓ 2 callers
Method
Restart
Restart restarts containers
pkg/api/api.go:95
↓ 2 callers
Method
SpanStartOptions
()
internal/tracing/attributes.go:45
↓ 2 callers
Method
Start
(ctx context.Context)
pkg/compose/watch.go:84
↓ 2 callers
Function
StartWithNewGroupID
(ctx context.Context, command icmd.Cmd, stdout *utils.SafeBuffer, stderr *utils.SafeBuffer)
pkg/e2e/cancel_test.go:87
↓ 2 callers
Method
Status
(container, msg string)
pkg/api/api.go:707
↓ 2 callers
Method
String
String is a thread safe version of bytes.Buffer::String
pkg/utils/safebuffer.go:51
↓ 2 callers
Method
Sync
(ctx context.Context, service string, paths []*PathMapping)
internal/sync/shared.go:39
↓ 2 callers
Method
TearDown
()
pkg/watch/temp.go:78
↓ 2 callers
Method
Viz
Viz generates a graphviz graph of the project services
pkg/api/api.go:137
↓ 2 callers
Method
WaitForCmdResult
WaitForCmdResult try to execute a cmd until resulting output matches given predicate
pkg/e2e/framework.go:434
↓ 2 callers
Function
WithRootNodesAndDown
(nodes []string)
pkg/compose/dependencies.go:104
↓ 2 callers
Function
Write
Write writes a "PID file" at the specified path. It returns an error if the file exists and contains a valid PID of a running process, or when failing
internal/pidfile/pidfile.go:55
↓ 2 callers
Method
Write
(p []byte)
pkg/compose/logs_test.go:57
↓ 2 callers
Method
Write
(p []byte)
cmd/prompt/prompt.go:54
↓ 2 callers
Function
addBuildDependencies
(services []string, project *types.Project)
pkg/compose/build.go:283
↓ 2 callers
Method
apply
(project *types.Project, services []string)
cmd/compose/up.go:67
↓ 2 callers
Method
applyPadding
(lines []lineData, terminalWidth int, timerLen int)
cmd/display/tty.go:387
↓ 2 callers
Function
applyScaleOpts
(project *types.Project, opts []string)
cmd/compose/create.go:199
↓ 2 callers
Method
buildContainerMountOptions
(ctx context.Context, p types.Project, service types.ServiceConfig, inherit *container.Summary)
pkg/compose/create.go:992
↓ 2 callers
Method
buildContainerVolumes
( ctx context.Context, p types.Project, service types.ServiceConfig, inherit *container.Summary, )
pkg/compose/create.go:862
↓ 2 callers
Function
cacheDir
()
pkg/remote/cache.go:24
↓ 2 callers
Function
checkIfPathAlreadyBindMounted
(watchPath string, volumes []types.ServiceVolumeConfig)
pkg/compose/watch.go:436
↓ 2 callers
Function
checkServiceContainer
(t *testing.T, stdout, containerName, containerState string, count int)
pkg/e2e/scale_test.go:169
↓ 2 callers
Function
checksForRemoteStack
checksForRemoteStack handles environment variable prompts for remote configurations
cmd/compose/options.go:105
↓ 2 callers
Method
clearNavigationMenu
()
cmd/formatter/shortcut.go:193
↓ 2 callers
Method
closeWatcher
()
pkg/watch/notify_test.go:633
↓ 2 callers
Function
collectEnvCheckFindings
collectEnvCheckFindings walks every compose file scheduled for publication (top-level files plus any local extends parents discovered along the way) a
pkg/compose/publish.go:473
↓ 2 callers
Method
collectObservedState
collectObservedState queries the Docker daemon for all resources belonging to the given project and returns a structured snapshot. The project model i
pkg/compose/observed_state.go:84
↓ 2 callers
Function
collectTop
(containers []api.ContainerProcSummary)
cmd/compose/top.go:81
↓ 2 callers
Function
combinedConfigFiles
(containers []container.Summary)
pkg/compose/ls.go:68
↓ 2 callers
Function
combinedStatus
(statuses []string)
pkg/compose/ls.go:95
↓ 2 callers
Function
commandName
commandName returns the path components for a given command, in reverse alphabetical order for consistent usage metrics. The root Compose command and
cmd/cmdtrace/cmd_span.go:130
↓ 2 callers
Function
confirmRemoteIncludes
(dockerCli command.Cli, options buildOptions, assumeYes bool)
cmd/compose/options.go:257
↓ 2 callers
Method
containersByService
containersByService flattens the observed containers into the shape resolveServiceReferences expects: project service name → raw Summaries.
pkg/compose/observed_state.go:248
↓ 2 callers
Method
containersForServices
containersForServices returns all observed containers belonging to the given service names.
pkg/compose/reconcile.go:358
↓ 2 callers
Function
containersToStacks
(containers []container.Summary)
pkg/compose/ls.go:45
↓ 2 callers
Method
createLayers
(ctx context.Context, project *types.Project, options api.PublishOptions)
pkg/compose/publish.go:164
↓ 2 callers
Function
createTestProject
()
pkg/compose/dependencies_test.go:33
↓ 2 callers
Method
createVolume
(ctx context.Context, volume types.VolumeConfig)
pkg/compose/create.go:1688
↓ 2 callers
Function
ddProxyFunc
ddProxyFunc returns a transport Proxy function that routes every request through the Docker Desktop proxy except loopback targets, which connect direc
internal/desktop/proxy.go:154
↓ 2 callers
Method
dependenciesRecreateStrategy
()
cmd/compose/create.go:147
↓ 2 callers
Function
displayInterpolationVariables
(writer io.Writer, varsInfo []varInfo)
cmd/compose/options.go:225
↓ 2 callers
Function
displayLocationRemoteStack
(dockerCli command.Cli, project *types.Project, options buildOptions)
cmd/compose/options.go:250
↓ 2 callers
Method
doAttachContainer
(ctx context.Context, service, id, name string, listener api.ContainerEventListener)
pkg/compose/attach.go:72
↓ 2 callers
Function
doTest
NOTE: these tests all share a single Compose file but are safe to run concurrently (though that's not recommended).
pkg/e2e/watch_test.go:135
↓ 2 callers
Function
downDirectionTraversal
(visitorFn func(context.Context, string) error)
pkg/compose/dependencies.go:67
↓ 2 callers
Function
emitRunningEvents
emitRunningEvents emits "Running" progress events for containers that are already running and have no operations planned for them. This matches the pr
pkg/compose/observed_state.go:220
↓ 2 callers
Function
encodedAuth
(ref reference.Named, configFile authProvider)
pkg/compose/pull.go:280
↓ 2 callers
Method
ensureImagesExists
(ctx context.Context, project *types.Project, buildOpts *api.BuildOptions, quietPull bool)
pkg/compose/build.go:110
↓ 2 callers
Method
ensureModels
(ctx context.Context, project *types.Project, quietPull bool)
pkg/compose/model.go:39
↓ 2 callers
Method
ensureNetwork
(ctx context.Context, project *types.Project, name string, n *types.NetworkConfig)
pkg/compose/create.go:1319
↓ 2 callers
Function
envResolver
envResolver returns resolver for environment variables suitable for the current platform. Expected to be used with `MappingWithEquals.Resolve`. Update
pkg/compose/envresolver.go:30
↓ 2 callers
Function
envResolverWithCase
envResolverWithCase returns resolver for environment variables with the specified case-sensitive condition. Expected to be used with `MappingWithEqual
pkg/compose/envresolver.go:37
↓ 2 callers
Method
filterImagesByExistence
filterImagesByExistence returns the subset of images that exist in the engine store. NOTE: Any transient errors communicating with the API will resul
pkg/compose/image_pruner.go:194
↓ 2 callers
Function
findPluginExecutable
(pluginExecutableName string)
pkg/e2e/framework.go:220
↓ 2 callers
Function
getCallingFunction
()
pkg/dryrun/dryrunclient.go:84
↓ 2 callers
Function
getDefaultFilters
(projectName string, oneOff oneOff, selectedServices ...string)
pkg/compose/containers.go:74
↓ 2 callers
Function
getDependentServiceFromMode
(mode string)
pkg/compose/create.go:852
↓ 2 callers
Function
getFlags
(fs *flag.FlagSet)
cmd/cmdtrace/cmd_span.go:142
↓ 2 callers
Method
getLinks
getLinks mimics V1 compose/service.py::Service::_get_links()
pkg/compose/convergence.go:416
↓ 2 callers
Method
getLocalImagesDigests
(ctx context.Context, project *types.Project)
pkg/compose/build.go:192
↓ 2 callers
Function
getMapping
(root *yaml.Node, key string)
pkg/compose/transform/replace.go:109
↓ 2 callers
Method
getProxyConfig
getProxyConfig returns the proxy config - either custom override or environment-based
pkg/compose/compose.go:251
↓ 2 callers
Function
getScale
convergence manages service's container lifecycle. Based on initially observed state, it reconciles the existing container with desired state, which m
pkg/compose/convergence.go:52
↓ 2 callers
Function
getWatchRules
(config *types.DevelopConfig, service types.ServiceConfig)
pkg/compose/watch.go:295
↓ 2 callers
Method
gitCommandEnv
()
pkg/remote/git.go:243
↓ 2 callers
Function
greatestExistingAncestor
(path string)
pkg/watch/paths.go:25
↓ 2 callers
Function
hasFlag
(flags map[string]string, names ...string)
cmd/compose/hooks.go:147
↓ 2 callers
Function
hintLink
hintLink returns a clickable OSC 8 terminal hyperlink when ANSI is allowed, or the plain URL when ANSI output is suppressed via NO_COLOR or COMPOSE_AN
cmd/compose/hooks.go:45
↓ 2 callers
Function
increment
(scale *int)
pkg/compose/compose.go:427
↓ 2 callers
Method
injectConfigs
(ctx context.Context, project *types.Project, service types.ServiceConfig, id string)
pkg/compose/secrets.go:42
↓ 2 callers
Method
injectFileReferences
(ctx context.Context, project *types.Project, service types.ServiceConfig, id string, mountType mountType)
pkg/compose/secrets.go:46
↓ 2 callers
Method
injectSecrets
(ctx context.Context, project *types.Project, service types.ServiceConfig, id string)
pkg/compose/secrets.go:38
↓ 2 callers
Function
inotifyNodes
()
pkg/watch/watcher_naive_test.go:122
↓ 2 callers
Function
inspectWithPull
(ctx context.Context, dockerCli command.Cli, imageName string)
pkg/bridge/convert.go:225
↓ 2 callers
Function
isOrphaned
isOrphaned is a predicate to select containers without a matching service definition in compose project
pkg/compose/containers.go:146
↓ 2 callers
Function
isRemoteConfig
isRemoteConfig checks if the main compose file is from a remote source (OCI or Git)
cmd/compose/options.go:91
↓ 2 callers
Method
isServiceHealthy
(ctx context.Context, containers Containers, fallbackRunning bool)
pkg/compose/convergence.go:470
← previous
next →
301–400 of 2,102, ranked by callers