Skip to content

Commit 9c68c76

Browse files
committed
minor improvement and fix
Signed-off-by: Mehrad Dadar <[email protected]>
1 parent aeb7448 commit 9c68c76

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pkg/compose/compose.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ SERVICES:
142142
}
143143
return project, errors.New("no such service: " + qs)
144144
}
145+
err := project.ForServices(services)
146+
if err != nil {
147+
return project, err
148+
}
145149

146150
return project, nil
147151
}

pkg/compose/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (s *composeService) Start(ctx context.Context, projectName string, options
3636

3737
func (s *composeService) start(ctx context.Context, projectName string, options api.StartOptions, listener api.ContainerEventListener) error {
3838
var containers Containers
39-
containers, err := s.getContainers(ctx, projectName, oneOffExclude, true, options.AttachTo...)
39+
containers, err := s.getContainers(ctx, projectName, oneOffExclude, true)
4040
if err != nil {
4141
return err
4242
}

0 commit comments

Comments
 (0)