mirror of https://github.com/docker/compose.git
minor improvement and fix
Signed-off-by: Mehrad Dadar <mehrad.dadar@gmail.com>
This commit is contained in:
parent
aeb7448449
commit
9c68c76bea
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue