MCPcopy
hub / github.com/docker/compose / RunOneOffContainer

Method RunOneOffContainer

pkg/api/api.go:111–111  ·  view source on GitHub ↗

RunOneOffContainer creates a service oneoff container and starts its dependencies

(ctx context.Context, project *types.Project, opts RunOptions)

Source from the content-addressed store, hash-verified

109 Kill(ctx context.Context, projectName string, options KillOptions) error
110 // RunOneOffContainer creates a service oneoff container and starts its dependencies
111 RunOneOffContainer(ctx context.Context, project *types.Project, opts RunOptions) (int, error)
112 // Remove executes the equivalent to a `compose rm`
113 Remove(ctx context.Context, projectName string, options RemoveOptions) error
114 // Exec executes a command in a running service container

Callers 1

runRunFunction · 0.65

Implementers 3

MockComposepkg/mocks/mock_docker_compose_api.go
MockComposeMockRecorderpkg/mocks/mock_docker_compose_api.go
composeServicepkg/compose/compose.go

Calls

no outgoing calls

Tested by

no test coverage detected