Skip to content

Commit 8c79514

Browse files
committed
filter containers after project has been rebuilt from resources
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 9054f6a commit 8c79514

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/compose/stop.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ func (s *composeService) stop(ctx context.Context, projectName string, options a
4848
return err
4949
}
5050

51+
if len(services) > 0 {
52+
containers = containers.filter(isService(services...))
53+
}
54+
5155
return InReverseDependencyOrder(ctx, project, func(c context.Context, service string) error {
5256
return s.stopContainers(ctx, w, containers.filter(isService(service)), options.Timeout)
5357
})

0 commit comments

Comments
 (0)