Ver Fonte

Merge pull request #8938 from ndeloof/run_T

don't SetRawTerminal when run is ran with -T
Ulysses Souza há 3 anos atrás
pai
commit
dfa93d834f
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      pkg/compose/run.go

+ 1 - 1
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