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

Method Restart

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

Restart restarts containers

(ctx context.Context, projectName string, options RestartOptions)

Source from the content-addressed store, hash-verified

93 Start(ctx context.Context, projectName string, options StartOptions) error
94 // Restart restarts containers
95 Restart(ctx context.Context, projectName string, options RestartOptions) error
96 // Stop executes the equivalent to a `compose stop`
97 Stop(ctx context.Context, projectName string, options StopOptions) error
98 // Up executes the equivalent to a `compose up`

Callers 2

hasMoreMethod · 0.65
runRestartFunction · 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