Skip to content

Commit c2cb0ae

Browse files
committed
only monitor attached services on up command
Signed-off-by: Guillaume Lours <[email protected]>
1 parent fbc62d1 commit c2cb0ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/compose/up.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ func (s *composeService) Up(ctx context.Context, project *types.Project, options
168168
if len(options.Start.Services) > 0 {
169169
monitor.withServices(options.Start.Services)
170170
} else {
171-
monitor.withServices(project.ServiceNames())
171+
// Start.AttachTo have been already curated with only the services to monitor
172+
monitor.withServices(options.Start.AttachTo)
172173
}
173174
monitor.withListener(printer.HandleEvent)
174175

0 commit comments

Comments
 (0)