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
↓ 149 callers
Method
RunDockerComposeCmd
RunDockerComposeCmd runs a docker compose command, expects no error and returns a result
pkg/e2e/framework.go:361
↓ 120 callers
Function
NewParallelCLI
NewParallelCLI marks the parent test as parallel and returns a CLI instance suitable for usage across child tests.
pkg/e2e/framework.go:89
↓ 87 callers
Method
apiClient
()
pkg/compose/compose.go:234
↓ 78 callers
Function
NewComposeService
NewComposeService creates a Compose service using Docker CLI. This is the standard constructor that requires command.Cli for full functionality. Exam
pkg/compose/compose.go:66
↓ 61 callers
Method
TempDir
(prefix string)
pkg/watch/temp_dir_fixture.go:174
↓ 56 callers
Method
WriteFile
Returns the full path to the file written.
pkg/watch/temp_dir_fixture.go:103
↓ 49 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
pkg/mocks/mock_docker_cli.go:46
↓ 47 callers
Method
Add
(v T)
pkg/utils/set.go:36
↓ 45 callers
Function
NewCLI
NewCLI creates a CLI instance for running E2E tests.
pkg/e2e/framework.go:96
↓ 44 callers
Method
Close
Stop watching and close all channels
pkg/watch/notify.go:43
↓ 44 callers
Method
On
On notify about (sub)task and progress processing operation
pkg/api/event.go:104
↓ 44 callers
Method
RunDockerCmd
RunDockerCmd runs a docker command, expects no error and returns a result
pkg/e2e/framework.go:353
↓ 42 callers
Method
Error
()
pkg/compose/executor_test.go:259
↓ 41 callers
Method
RunDockerComposeCmdNoCheck
RunDockerComposeCmdNoCheck runs a docker compose command, don't presume of any expectation and returns a result
pkg/e2e/framework.go:369
↓ 40 callers
Method
cleanupWithDown
(t testing.TB, project string, args ...string)
pkg/e2e/framework.go:516
↓ 39 callers
Method
Out
Out mocks base method.
pkg/mocks/mock_docker_cli.go:192
↓ 38 callers
Method
Lock
()
internal/locker/pidfile_unix.go:27
↓ 37 callers
Function
Adapt
Adapt a Command func to cobra library
cmd/compose/compose.go:134
↓ 37 callers
Method
Wait
Wait blocks until at least one of the services' container exits
pkg/api/api.go:139
↓ 36 callers
Method
NewDockerComposeCmd
NewDockerComposeCmd creates a command object for Compose, either in plugin or standalone mode (based on build tags).
pkg/e2e/framework.go:379
↓ 35 callers
Method
String
String renders the plan as a human-readable graph for testing and debugging. Format per line: [dep1,dep2] -> #id resource, operation, cause [group]
pkg/compose/plan.go:146
↓ 34 callers
Function
WithEnv
WithEnv sets environment variables that will be passed to commands.
pkg/e2e/framework.go:117
↓ 30 callers
Function
completeServiceNames
(dockerCli command.Cli, p *ProjectOptions)
cmd/compose/completion.go:39
↓ 30 callers
Function
projectFilter
(projectName string)
pkg/compose/filters.go:33
↓ 28 callers
Method
RunCmd
RunCmd runs a command, expects no error and returns a result
pkg/e2e/framework.go:331
↓ 28 callers
Function
newEvent
newEvent new event
pkg/compose/progress.go:115
↓ 27 callers
Method
ContainerList
(ctx context.Context, options client.ContainerListOptions)
pkg/dryrun/dryrunclient.go:141
↓ 27 callers
Function
NewMockCli
NewMockCli creates a new mock instance.
pkg/mocks/mock_docker_cli.go:39
↓ 25 callers
Function
reconcile
reconcile is the main entry point: it builds a Plan from desired vs observed state. The prompt function is reserved for future interactive decisions (
pkg/compose/reconcile.go:112
↓ 24 callers
Method
Err
(containerName, message string)
pkg/api/api.go:706
↓ 24 callers
Function
defaultReconcileOptions
()
pkg/compose/reconcile_test.go:35
↓ 23 callers
Method
Client
Client mocks base method.
pkg/mocks/mock_docker_cli.go:66
↓ 23 callers
Method
String
()
cmd/display/spinner.go:51
↓ 22 callers
Method
String
()
pkg/api/api.go:501
↓ 22 callers
Method
getContainers
(ctx context.Context, project string, oneOff oneOff, all bool, selectedServices ...string)
pkg/compose/containers.go:45
↓ 22 callers
Function
newNotifyFixture
(t *testing.T)
pkg/watch/notify_test.go:501
↓ 20 callers
Method
ToProject
(ctx context.Context, dockerCli command.Cli, backend api.Compose, services []string)
cmd/compose/config.go:66
↓ 20 callers
Method
assertEvents
(expected ...string)
pkg/watch/notify_test.go:540
↓ 20 callers
Function
intPtr
(i int)
pkg/compose/convergence_test.go:60
↓ 19 callers
Method
Dir
(path string)
pkg/remote/git.go:133
↓ 19 callers
Method
Log
(containerName, message string)
pkg/api/api.go:705
↓ 19 callers
Function
Run
(ctx context.Context, pf progressFunc, operation string, bus api.EventProcessor)
pkg/compose/progress.go:28
↓ 18 callers
Method
ContainerInspect
(ctx context.Context, container string, options client.ContainerInspectOptions)
pkg/dryrun/dryrunclient.go:109
↓ 18 callers
Method
watch
(path string)
pkg/watch/notify_test.go:516
↓ 17 callers
Method
ContainerRemove
(ctx context.Context, container string, options client.ContainerRemoveOptions)
pkg/dryrun/dryrunclient.go:166
↓ 17 callers
Method
Done
Done is triggered as a Compose operation completed
pkg/api/event.go:106
↓ 17 callers
Method
addNode
addNode appends a new node to the plan and returns it.
pkg/compose/plan.go:125
↓ 16 callers
Function
GetImageNameOrDefault
GetImageNameOrDefault computes the default image name for a service, used to tag built images
pkg/api/api.go:756
↓ 16 callers
Method
NetworkList
(ctx context.Context, options client.NetworkListOptions)
pkg/dryrun/dryrunclient.go:452
↓ 16 callers
Method
RunDockerOrExitError
RunDockerOrExitError runs a docker command and returns a result
pkg/e2e/framework.go:324
↓ 16 callers
Function
prepareMocks
(mockCtrl *gomock.Controller)
pkg/compose/down_test.go:416
↓ 15 callers
Method
Bytes
Bytes is a thread safe version of bytes.Buffer::Bytes
pkg/utils/safebuffer.go:58
↓ 15 callers
Method
ContainerCreate
(ctx context.Context, options client.ContainerCreateOptions)
pkg/dryrun/dryrunclient.go:96
↓ 15 callers
Method
ImageInspect
(ctx context.Context, imageName string, options ...client.ImageInspectOption)
pkg/dryrun/dryrunclient.go:207
↓ 15 callers
Method
filter
filter return Containers with elements to match predicate
pkg/compose/containers.go:170
↓ 15 callers
Method
fsync
()
pkg/watch/notify_test.go:582
↓ 15 callers
Function
getCanonicalContainerName
(c container.Summary)
pkg/compose/compose.go:332
↓ 14 callers
Method
JoinPath
(path ...string)
pkg/watch/temp_dir_fixture.go:79
↓ 14 callers
Method
MkdirAll
(path string)
pkg/watch/temp_dir_fixture.go:148
↓ 14 callers
Function
NewMockAPIClient
NewMockAPIClient creates a new mock instance.
pkg/mocks/mock_docker_api.go:34
↓ 14 callers
Method
VolumeList
(ctx context.Context, opts client.VolumeListOptions)
pkg/dryrun/dryrunclient.go:608
↓ 14 callers
Function
getContainerProgressName
(ctr container.Summary)
pkg/compose/convergence.go:133
↓ 14 callers
Function
testContainer
(service string, id string, oneOff bool)
pkg/compose/kill_test.go:112
↓ 13 callers
Method
IsEmpty
IsEmpty returns true if the plan contains no operations.
pkg/compose/plan.go:174
↓ 13 callers
Function
isService
(services ...string)
pkg/compose/containers.go:138
↓ 12 callers
Method
ContainerLogs
(ctx context.Context, container string, options client.ContainerLogsOptions)
pkg/dryrun/dryrunclient.go:352
↓ 12 callers
Method
Copy
Copy copies a file/folder between a service container and the local filesystem
pkg/api/api.go:119
↓ 12 callers
Method
Kill
Kill executes the equivalent to a `compose kill`
pkg/api/api.go:109
↓ 12 callers
Method
LoadProject
LoadProject loads and validates a Compose project from configuration files.
pkg/api/api.go:151
↓ 12 callers
Method
Remove
Remove executes the equivalent to a `compose rm`
pkg/api/api.go:113
↓ 12 callers
Function
handleHook
(ctx context.Context, args []string, w io.Writer)
cmd/compose/hooks.go:174
↓ 12 callers
Method
projectOrName
(ctx context.Context, dockerCli command.Cli, services ...string)
cmd/compose/compose.go:246
↓ 11 callers
Method
ContainerStop
(ctx context.Context, container string, options client.ContainerStopOptions)
pkg/dryrun/dryrunclient.go:182
↓ 11 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
pkg/mocks/mock_docker_api.go:41
↓ 11 callers
Method
Name
()
pkg/compose/build_bake.go:469
↓ 11 callers
Method
RemoveAll
(elements ...T)
pkg/utils/set.go:54
↓ 11 callers
Function
errorEvent
errorEvent creates a new Error Resource with message
pkg/compose/progress.go:36
↓ 11 callers
Function
lenAnsi
lenAnsi count of user-perceived characters in ANSI string.
cmd/display/tty.go:677
↓ 10 callers
Method
ContainerStart
(ctx context.Context, container string, options client.ContainerStartOptions)
pkg/dryrun/dryrunclient.go:178
↓ 10 callers
Method
ReadFile
Read the file.
pkg/watch/temp_dir_fixture.go:127
↓ 10 callers
Method
configFile
()
pkg/compose/compose.go:238
↓ 10 callers
Method
runPreStart
runPreStart executes the service's pre_start hooks sequentially, in declared order. Each hook runs as an ephemeral container that shares the service c
pkg/compose/pre_start.go:60
↓ 10 callers
Method
stdout
()
pkg/compose/compose.go:258
↓ 10 callers
Method
toProjectName
(ctx context.Context, dockerCli command.Cli)
cmd/compose/compose.go:269
↓ 9 callers
Method
Add
(option compose.Option)
cmd/compose/compose.go:423
↓ 9 callers
Method
ContainerWait
(ctx context.Context, container string, options client.ContainerWaitOptions)
pkg/dryrun/dryrunclient.go:376
↓ 9 callers
Method
Down
Down executes the equivalent to a `compose down`
pkg/api/api.go:101
↓ 9 callers
Method
Len
Len implements sort.Interface
pkg/api/api.go:567
↓ 9 callers
Method
Start
Start executes the equivalent to a `compose start`
pkg/api/api.go:93
↓ 9 callers
Method
Stop
()
cmd/formatter/shortcut.go:82
↓ 9 callers
Function
anyCancellableContext
()
pkg/compose/kill_test.go:140
↓ 9 callers
Function
marshalHookData
(t *testing.T, data hooks.Request)
cmd/compose/hooks_test.go:329
↓ 9 callers
Function
mustServiceHash
--- Helpers ---
pkg/compose/reconcile_test.go:909
↓ 9 callers
Function
newPreStartTestService
(t *testing.T)
pkg/compose/pre_start_test.go:36
↓ 8 callers
Function
AdaptCmd
AdaptCmd adapt a CobraCommand func to cobra library
cmd/compose/compose.go:107
↓ 8 callers
Method
ClientVersion
()
pkg/dryrun/dryrunclient.go:620
↓ 8 callers
Method
ConfigFile
ConfigFile mocks base method.
pkg/mocks/mock_docker_cli.go:80
↓ 8 callers
Function
CopyFile
CopyFile copies a file from a sourceFile to a destinationFile setting permissions to 0755
pkg/e2e/framework.go:247
↓ 8 callers
Method
In
In mocks base method.
pkg/mocks/mock_docker_cli.go:164
↓ 8 callers
Method
NetworkInspect
(ctx context.Context, networkName string, options client.NetworkInspectOptions)
pkg/dryrun/dryrunclient.go:448
next →
1–100 of 2,102, ranked by callers