mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Merge pull request #1913 from ndeloof/nothing_to_start
This commit is contained in:
commit
ba4a74267d
@ -556,6 +556,10 @@ func (s *composeService) startService(ctx context.Context, project *types.Projec
|
||||
return err
|
||||
}
|
||||
|
||||
if len(containers) == 0 {
|
||||
return fmt.Errorf("no containers to start")
|
||||
}
|
||||
|
||||
w := progress.ContextWriter(ctx)
|
||||
eg, ctx := errgroup.WithContext(ctx)
|
||||
for _, container := range containers {
|
||||
|
Loading…
x
Reference in New Issue
Block a user