From c2cb0aef6bbbe1afc8c9e81267621655ac90c5f6 Mon Sep 17 00:00:00 2001 From: Guillaume Lours <705411+glours@users.noreply.github.com> Date: Tue, 29 Jul 2025 18:15:21 +0200 Subject: [PATCH] only monitor attached services on up command Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com> --- pkg/compose/up.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/compose/up.go b/pkg/compose/up.go index f58882fbc..9cbba83dc 100644 --- a/pkg/compose/up.go +++ b/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)