From fcff36fc8a57bfe9353ed406dbc7570618cf7c65 Mon Sep 17 00:00:00 2001 From: Guillaume Lours Date: Fri, 1 Apr 2022 22:12:42 +0200 Subject: [PATCH] now we use directly the Docker CLI to run autoremove flag should be pass as is Signed-off-by: Guillaume Lours --- pkg/compose/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compose/run.go b/pkg/compose/run.go index 567b51cf..3c386f3b 100644 --- a/pkg/compose/run.go +++ b/pkg/compose/run.go @@ -89,7 +89,7 @@ func (s *composeService) prepareRun(ctx context.Context, project *types.Project, updateServices(&service, observedState) created, err := s.createContainer(ctx, project, service, service.ContainerName, 1, - opts.Detach && opts.AutoRemove, opts.UseNetworkAliases, opts.Interactive) + opts.AutoRemove, opts.UseNetworkAliases, opts.Interactive) if err != nil { return "", err }