(ctx context.Context, projectName string, options api.StopOptions)
| 25 | ) |
| 26 | |
| 27 | func (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 | |
| 33 | func (s *composeService) stop(ctx context.Context, projectName string, options api.StopOptions, event api.ContainerEventListener) error { |
| 34 | containers, err := s.getContainers(ctx, projectName, oneOffExclude, true) |