From 16a7c209602dda36ef9377c082828112cee503a4 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Wed, 18 Oct 2023 12:19:45 +0200 Subject: [PATCH] enable profile when down is ran with explicit service names Signed-off-by: Nicolas De Loof --- cmd/compose/down.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/compose/down.go b/cmd/compose/down.go index 4ac85f348f1..97215a78572 100644 --- a/cmd/compose/down.go +++ b/cmd/compose/down.go @@ -78,7 +78,7 @@ func downCommand(p *ProjectOptions, dockerCli command.Cli, backend api.Service) } func runDown(ctx context.Context, dockerCli command.Cli, backend api.Service, opts downOptions, services []string) error { - project, name, err := opts.projectOrName(dockerCli) + project, name, err := opts.projectOrName(dockerCli, services...) if err != nil { return err }