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
Function
isUnixAbs
(p string)
pkg/compose/create.go:1194
↓ 2 callers
Function
isVertexEqual
(a, b Vertex)
pkg/compose/dependencies_test.go:326
↓ 2 callers
Function
isWindowsAbs
(p string)
pkg/compose/create.go:1198
↓ 2 callers
Function
keys
(m map[string]T)
internal/tracing/attributes.go:162
↓ 2 callers
Method
kill
(ctx context.Context, projectName string, options api.KillOptions)
pkg/compose/kill.go:35
↓ 2 callers
Function
lineText
(l lineData)
cmd/display/tty.go:613
↓ 2 callers
Function
loadUnresolvedFile
loadUnresolvedFile loads a single compose file with interpolation and environment resolution skipped, so callers can inspect raw user-provided values.
pkg/compose/publish.go:619
↓ 2 callers
Function
makeColorFunc
(code string)
cmd/formatter/colors.go:109
↓ 2 callers
Function
moveCursor
(y, x int)
cmd/formatter/ansi.go:51
↓ 2 callers
Method
mustRecreate
mustRecreate decides whether oc must be recreated to match expected. The expectedHash and parentRecreated inputs are precomputed once per service by r
pkg/compose/reconcile.go:540
↓ 2 callers
Function
mustResolvedServiceHash
mustResolvedServiceHash mirrors what the executor persists at create time: the service references are resolved before hashing. Use it to seed Observed
pkg/compose/reconcile_test.go:920
↓ 2 callers
Function
mustWrite
(t *testing.T, dir, name, content string)
cmd/compose/hooks_test.go:322
↓ 2 callers
Method
navigationMenu
()
cmd/formatter/shortcut.go:169
↓ 2 callers
Function
newLine
()
cmd/formatter/ansi.go:89
↓ 2 callers
Function
newLogPrinter
newLogPrinter builds a LogPrinter passing containers logs to LogConsumer
pkg/compose/printer.go:35
↓ 2 callers
Function
newMockCli
(t *testing.T, out, errStream *streams.Out)
cmd/compose/compose_progress_test.go:71
↓ 2 callers
Function
newMonitor
(apiClient client.APIClient, project string)
pkg/compose/monitor.go:40
↓ 2 callers
Method
newRequest
(ctx context.Context, method, path string, body io.Reader)
internal/desktop/client.go:215
↓ 2 callers
Function
newStream
newStream returns a *streams.Out whose IsTerminal() matches tty. When tty is true it is backed by a pseudo-terminal slave; otherwise by an os.Pipe wri
cmd/compose/compose_progress_test.go:51
↓ 2 callers
Function
newWatcher
(paths []string)
pkg/watch/watcher_naive.go:273
↓ 2 callers
Function
optionalTimeout
optionalTimeout converts an integer timeout (in seconds) into a *time.Duration. If changed is false, nil is returned (no timeout was explicitly set).
cmd/compose/backend.go:39
↓ 2 callers
Function
parseMACAddr
(macAddress string)
pkg/compose/create.go:1755
↓ 2 callers
Method
preChecks
(ctx context.Context, project *types.Project, options api.PublishOptions)
pkg/compose/publish.go:318
↓ 2 callers
Function
preferredIndentationStr
preferredIndentationStr returns a single string given the indentation preference
cmd/compose/viz.go:95
↓ 2 callers
Function
prepareNetworks
(project *types.Project)
pkg/compose/create.go:132
↓ 2 callers
Method
print
()
cmd/display/tty.go:284
↓ 2 callers
Method
projectFromName
projectFromName builds a types.Project based on actual resources with compose labels set
pkg/compose/compose.go:359
↓ 2 callers
Function
projectHash
projectHash returns a checksum from the JSON encoding of the project.
internal/tracing/attributes.go:179
↓ 2 callers
Method
propagateDockerEndpoint
propagateDockerEndpoint produces DOCKER_* env vars for a child CLI plugin to target the same docker endpoint `cleanup` func MUST be called after child
pkg/compose/shellout.go:53
↓ 2 callers
Method
publish
nolint:gocyclo
pkg/compose/publish.go:55
↓ 2 callers
Function
publishCommand
(p *ProjectOptions, dockerCli command.Cli, backendOptions *BackendOptions)
cmd/compose/publish.go:43
↓ 2 callers
Method
pullServiceImage
(ctx context.Context, service types.ServiceConfig, quietPull bool, defaultPlatform string)
pkg/compose/pull.go:176
↓ 2 callers
Function
push
(ctx context.Context, resolver remotes.Resolver, ref reference.Named, descriptor v1.Descriptor)
internal/oci/push.go:131
↓ 2 callers
Method
push
(ctx context.Context, project *types.Project, options api.PushOptions)
pkg/compose/push.go:48
↓ 2 callers
Method
rebuildWatcher
()
pkg/watch/notify_test.go:521
↓ 2 callers
Method
recreateStrategy
()
cmd/compose/create.go:134
↓ 2 callers
Method
remove
(ctx context.Context, containers Containers, options api.RemoveOptions)
pkg/compose/remove.go:98
↓ 2 callers
Method
removeResource
removeResource emits a "Removing" progress event, calls op, then emits the appropriate completion event based on the error: nil→Removed, conflict→stil
pkg/compose/down.go:280
↓ 2 callers
Function
replace
replace changes yaml node value in stream at position, preserving content
pkg/compose/transform/replace.go:126
↓ 2 callers
Function
replaceDollarEscape
replaceDollarEscape substitutes the compose-spec `$$` escape (which represents a literal `$` in the resolved value) with a placeholder. The placeholde
pkg/compose/publish.go:567
↓ 2 callers
Function
resolveAndMergeBuildArgs
resolveAndMergeBuildArgs returns the final set of build arguments to use for the service image build. First, args directly defined via `build.args` i
pkg/compose/build.go:252
↓ 2 callers
Function
resolveLocalPath
(localPath string)
pkg/compose/cp.go:353
↓ 2 callers
Method
restart
(ctx context.Context, projectName string, options api.RestartOptions)
pkg/compose/restart.go:37
↓ 2 callers
Function
restoreCursor
()
cmd/formatter/ansi.go:36
↓ 2 callers
Function
runUp
nolint:gocyclo
cmd/compose/up.go:232
↓ 2 callers
Function
runVariables
(ctx context.Context, dockerCli command.Cli, opts configOptions, services []string)
cmd/compose/config.go:521
↓ 2 callers
Function
saveCursor
()
cmd/formatter/ansi.go:28
↓ 2 callers
Function
saveGlobalState
saveGlobalState snapshots package-level state that selectEventProcessor mutates (display.Mode and, in JSON mode, the logrus standard formatter) and re
cmd/compose/compose_progress_test.go:39
↓ 2 callers
Function
serviceHashWithResolvedRefs
serviceHashWithResolvedRefs mirrors what the executor persists at create time: service references (network_mode/ipc/pid: service:X, volumes_from) are
pkg/compose/reconcile.go:594
↓ 2 callers
Method
shouldDisplay
()
cmd/formatter/shortcut.go:46
↓ 2 callers
Function
shouldFollowStartEvent
(event api.ContainerEvent, attached []string, attachTo []string)
pkg/compose/up.go:305
↓ 2 callers
Method
shouldSkipDir
(path string)
pkg/watch/watcher_naive.go:237
↓ 2 callers
Method
sortedSuspiciousKeys
sortedSuspiciousKeys returns the suspicious env var names alphabetically sorted for stable output.
pkg/compose/publish.go:393
↓ 2 callers
Method
stdin
()
pkg/compose/compose.go:262
↓ 2 callers
Method
stop
()
cmd/display/tty.go:140
↓ 2 callers
Method
stopContainer
(ctx context.Context, service *types.ServiceConfig, ctr containerType.Summary, timeout *time.Duration, listene
pkg/compose/down.go:298
↓ 2 callers
Function
stoppedEvent
stoppedEvent creates a new Stopped (done) Resource
pkg/compose/progress.go:66
↓ 2 callers
Function
stoppingEvent
stoppingEvent creates a new Stopping in progress Resource
pkg/compose/progress.go:61
↓ 2 callers
Function
stripAnsi
stripAnsi removes ANSI escape codes from a string
cmd/display/tty_test.go:372
↓ 2 callers
Method
toProjectOptions
(po ...cli.ProjectOptionsFn)
cmd/compose/compose.go:376
↓ 2 callers
Method
toProjectOptionsFns
toProjectOptionsFns converts config options to cli.ProjectOptionsFn
cmd/compose/config.go:77
↓ 2 callers
Function
topPrint
(out io.Writer, headers topHeader, rows []topEntries)
cmd/compose/top.go:122
↓ 2 callers
Function
trim
(s string)
cmd/compose/top_test.go:322
↓ 2 callers
Function
truncateLongestTaskID
truncateLongestTaskID truncates the longest taskID to reduce overflow. Returns true if truncation was performed. Lengths and slicing are in runes to a
cmd/display/tty.go:526
↓ 2 callers
Function
truncateProgressSize
truncateProgressSize drops the trailing "X.XMB / Y.YMB" size info from the line currently driving maxBeforeStatusWidth — only that line's shrink can r
cmd/display/tty.go:483
↓ 2 callers
Function
urlForService
(t testing.TB, cli *CLI, service string, targetPort int)
pkg/e2e/pause_test.go:130
↓ 2 callers
Method
useAPISocket
--use-api-socket is not actually supported by the Docker Engine but is a client-side hack (see https://github.com/docker/cli/blob/master/cli/command/c
pkg/compose/apiSocket.go:32
↓ 2 callers
Function
versionCommand
(dockerCli command.Cli)
cmd/compose/version.go:35
↓ 2 callers
Method
watchEvents
(ctx context.Context, project *types.Project, options api.WatchOptions, watcher watch.Notify, syncer sync.Sync
pkg/compose/watch.go:346
↓ 2 callers
Method
withListener
(listener api.ContainerEventListener)
pkg/compose/monitor.go:208
↓ 2 callers
Method
withServices
(services []string)
pkg/compose/monitor.go:48
↓ 2 callers
Method
write
(w io.Writer, container, message string)
cmd/formatter/logs.go:117
↓ 2 callers
Function
writeComposeFile
(layer spec.Descriptor, i int, local string, content []byte)
pkg/remote/oci.go:237
↓ 1 callers
Function
AddAttributeToSpan
(ctx context.Context, attr ...attribute.KeyValue)
internal/tracing/wrap.go:95
↓ 1 callers
Method
Apply
Apply mutates project according to build options
pkg/api/api.go:232
↓ 1 callers
Method
ArchivePathsIfExist
ArchivePathsIfExist creates a tar archive of all local files in `paths`. It quietly skips any paths that don't exist.
internal/sync/tar.go:142
↓ 1 callers
Method
Attach
Attach STDIN,STDOUT,STDERR to a running service container
pkg/api/api.go:117
↓ 1 callers
Method
Build
Build executes the equivalent to a `compose build`
pkg/api/api.go:85
↓ 1 callers
Method
Chdir
()
pkg/watch/temp_dir_fixture.go:65
↓ 1 callers
Method
CheckRequiredParameters
(provider types.ServiceProviderConfig)
pkg/compose/plugins.go:313
↓ 1 callers
Method
Close
()
internal/sync/tar.go:137
↓ 1 callers
Function
ComposeStandalonePath
ComposeStandalonePath returns the path to the locally-built Compose standalone binary from the repo. This function will fail the test immediately if
pkg/e2e/framework.go:393
↓ 1 callers
Method
ConfigureModel
(ctx context.Context, config types.ModelConfig, events api.EventProcessor)
pkg/compose/model.go:161
↓ 1 callers
Method
ContainerAttach
All methods and functions which need to be overridden for dry run.
pkg/dryrun/dryrunclient.go:92
↓ 1 callers
Method
ContainerCommit
(ctx context.Context, container string, options client.ContainerCommitOptions)
pkg/dryrun/dryrunclient.go:328
↓ 1 callers
Method
ContainerExport
(ctx context.Context, container string, options client.ContainerExportOptions)
pkg/dryrun/dryrunclient.go:348
↓ 1 callers
Method
ContainerPause
(ctx context.Context, container string, options client.ContainerPauseOptions)
pkg/dryrun/dryrunclient.go:162
↓ 1 callers
Method
ContainerRename
(ctx context.Context, container string, options client.ContainerRenameOptions)
pkg/dryrun/dryrunclient.go:170
↓ 1 callers
Method
ContainerRestart
(ctx context.Context, container string, options client.ContainerRestartOptions)
pkg/dryrun/dryrunclient.go:174
↓ 1 callers
Method
ContainerTop
(ctx context.Context, container string, options client.ContainerTopOptions)
pkg/dryrun/dryrunclient.go:368
↓ 1 callers
Method
ContainerUnpause
(ctx context.Context, container string, options client.ContainerUnpauseOptions)
pkg/dryrun/dryrunclient.go:186
↓ 1 callers
Function
ContainerWrite
ContainerWrite renders the context for a list of containers
cmd/formatter/container.go:86
↓ 1 callers
Method
ContainersForService
(ctx context.Context, projectName string, serviceName string)
internal/sync/tar.go:46
↓ 1 callers
Method
ContextStore
ContextStore mocks base method.
pkg/mocks/mock_docker_cli.go:94
↓ 1 callers
Function
Convert
(ctx context.Context, dockerCli command.Cli, project *types.Project, opts ConvertOptions)
pkg/bridge/convert.go:51
↓ 1 callers
Function
Copy
(ctx context.Context, resolver remotes.Resolver, image reference.Named, named reference.Named)
internal/oci/resolver.go:98
↓ 1 callers
Method
Create
(ctx context.Context, project *types.Project, createOpts api.CreateOptions)
pkg/compose/create.go:62
↓ 1 callers
Function
CreateTransformer
(ctx context.Context, dockerCli command.Cli, options CreateTransformerOptions)
pkg/bridge/transformers.go:43
↓ 1 callers
Method
Decorate
(l api.LogConsumer)
cmd/formatter/shortcut.go:112
↓ 1 callers
Function
DescriptorForEnvFile
(path string, content []byte)
internal/oci/push.go:84
← previous
next →
401–500 of 2,102, ranked by callers