Jelajahi Sumber

only monitor attached services on up command

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 5 bulan lalu
induk
melakukan
c2cb0aef6b
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      pkg/compose/up.go

+ 2 - 1
pkg/compose/up.go

@@ -168,7 +168,8 @@ func (s *composeService) Up(ctx context.Context, project *types.Project, options
 	if len(options.Start.Services) > 0 {
 		monitor.withServices(options.Start.Services)
 	} else {
-		monitor.withServices(project.ServiceNames())
+		// Start.AttachTo have been already curated with only the services to monitor
+		monitor.withServices(options.Start.AttachTo)
 	}
 	monitor.withListener(printer.HandleEvent)