mirror of https://github.com/docker/compose.git
Merge pull request #8938 from ndeloof/run_T
don't SetRawTerminal when run is ran with -T
This commit is contained in:
commit
dfa93d834f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue