mirror of
https://github.com/docker/compose.git
synced 2026-08-04 06:38:45 +00:00
Merge pull request #1913 from ndeloof/nothing_to_start
This commit is contained in:
commit
ba4a74267d
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue