Merge pull request #1913 from ndeloof/nothing_to_start

This commit is contained in:
Nicolas De loof 2021-07-12 17:21:20 +02:00 committed by GitHub
commit ba4a74267d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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 {