mirror of https://github.com/docker/compose.git
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…
Reference in New Issue