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

Method Stop

pkg/compose/stop.go:27–31  ·  pkg/compose/stop.go::composeService.Stop
(ctx context.Context, projectName string, options api.StopOptions)

Source from the content-addressed store, hash-verified

25)
26
27func (s *composeService) Stop(ctx context.Context, projectName string, options api.StopOptions) error {
28 return Run(ctx, func(ctx context.Context) error {
29 return s.stop(ctx, strings.ToLower(projectName), options, nil)
30 }, "stop", s.events)
31}
32
33func (s *composeService) stop(ctx context.Context, projectName string, options api.StopOptions, event api.ContainerEventListener) error {
34 containers, err := s.getContainers(ctx, projectName, oneOffExclude, true)

Callers 1

RemoveMethod · 0.95

Calls 2

stopMethod · 0.95
RunFunction · 0.85

Tested by

no test coverage detected