Skip to content

Commit fcff36f

Browse files
gloursndeloof
authored andcommitted
now we use directly the Docker CLI to run autoremove flag should be pass as is
Signed-off-by: Guillaume Lours <[email protected]>
1 parent 804ef4a commit fcff36f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compose/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (s *composeService) prepareRun(ctx context.Context, project *types.Project,
8989
updateServices(&service, observedState)
9090

9191
created, err := s.createContainer(ctx, project, service, service.ContainerName, 1,
92-
opts.Detach && opts.AutoRemove, opts.UseNetworkAliases, opts.Interactive)
92+
opts.AutoRemove, opts.UseNetworkAliases, opts.Interactive)
9393
if err != nil {
9494
return "", err
9595
}

0 commit comments

Comments
 (0)