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

Method Restart

pkg/compose/restart.go:31–35  ·  view source on GitHub ↗
(ctx context.Context, projectName string, options api.RestartOptions)

Source from the content-addressed store, hash-verified

29)
30
31func (s *composeService) Restart(ctx context.Context, projectName string, options api.RestartOptions) error {
32 return Run(ctx, func(ctx context.Context) error {
33 return s.restart(ctx, strings.ToLower(projectName), options)
34 }, "restart", s.events)
35}
36
37func (s *composeService) restart(ctx context.Context, projectName string, options api.RestartOptions) error { //nolint:gocyclo
38 containers, err := s.getContainers(ctx, projectName, oneOffExclude, true)

Callers

nothing calls this directly

Calls 2

restartMethod · 0.95
RunFunction · 0.85

Tested by

no test coverage detected