diff --git a/pkg/compose/run.go b/pkg/compose/run.go index b9418d7c1..191faf4b7 100644 --- a/pkg/compose/run.go +++ b/pkg/compose/run.go @@ -62,7 +62,7 @@ func (s *composeService) runInteractive(ctx context.Context, containerID string, } in := streams.NewIn(opts.Stdin) - if in.IsTerminal() { + if in.IsTerminal() && opts.Tty { state, err := term.SetRawTerminal(in.FD()) if err != nil { return 0, err