mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08:00
Merge pull request #8938 from ndeloof/run_T
don't SetRawTerminal when run is ran with -T
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user