Ignore missing containers when compose stop -p

Signed-off-by: koooge <koooooge@gmail.com>
This commit is contained in:
koooge 2024-04-07 16:09:22 +02:00 committed by Nicolas De loof
parent 8ceaf49296
commit 54a525bbe6
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ func (s *composeService) stop(ctx context.Context, projectName string, options a
}
w := progress.ContextWriter(ctx)
return InReverseDependencyOrder(ctx, project, false, func(c context.Context, service string) error {
return InReverseDependencyOrder(ctx, project, true, func(c context.Context, service string) error {
if !utils.StringContains(options.Services, service) {
return nil
}