minor improvement and fix

Signed-off-by: Mehrad Dadar <mehrad.dadar@gmail.com>
This commit is contained in:
Mehrad Dadar 2022-02-27 03:40:46 +03:30
parent aeb7448449
commit 9c68c76bea
2 changed files with 5 additions and 1 deletions

View File

@ -142,6 +142,10 @@ SERVICES:
}
return project, errors.New("no such service: " + qs)
}
err := project.ForServices(services)
if err != nil {
return project, err
}
return project, nil
}

View File

@ -36,7 +36,7 @@ func (s *composeService) Start(ctx context.Context, projectName string, options
func (s *composeService) start(ctx context.Context, projectName string, options api.StartOptions, listener api.ContainerEventListener) error {
var containers Containers
containers, err := s.getContainers(ctx, projectName, oneOffExclude, true, options.AttachTo...)
containers, err := s.getContainers(ctx, projectName, oneOffExclude, true)
if err != nil {
return err
}