Skip to content

Commit ed38fe0

Browse files
committed
only stop services started by up on interruption
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 06e7137 commit ed38fe0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/compose/up.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,13 @@ func (s *composeService) Up(ctx context.Context, project *types.Project, options
6262
<-signalChan
6363
s.Kill(ctx, project.Name, api.KillOptions{ //nolint:errcheck
6464
Services: options.Create.Services,
65+
Project: project,
6566
})
6667
}()
6768

6869
return s.Stop(ctx, project.Name, api.StopOptions{
6970
Services: options.Create.Services,
71+
Project: project,
7072
})
7173
})
7274
}

0 commit comments

Comments
 (0)