From ed38fe0da80e0787468194a93d2406aee8984f63 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Tue, 29 Nov 2022 15:02:08 +0100 Subject: [PATCH] only stop services started by `up` on interruption Signed-off-by: Nicolas De Loof --- pkg/compose/up.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/compose/up.go b/pkg/compose/up.go index 20acfa487..72d10fc3c 100644 --- a/pkg/compose/up.go +++ b/pkg/compose/up.go @@ -62,11 +62,13 @@ func (s *composeService) Up(ctx context.Context, project *types.Project, options <-signalChan s.Kill(ctx, project.Name, api.KillOptions{ //nolint:errcheck Services: options.Create.Services, + Project: project, }) }() return s.Stop(ctx, project.Name, api.StopOptions{ Services: options.Create.Services, + Project: project, }) }) }