Skip to content

fix(exec): don't steal stdin when stdout is not a TTY - #14181

Open
locker95 wants to merge 1 commit into
docker:mainfrom
locker95:fix/exec-interactive-piped
Open

fix(exec): don't steal stdin when stdout is not a TTY#14181
locker95 wants to merge 1 commit into
docker:mainfrom
locker95:fix/exec-interactive-piped

Conversation

@locker95

@locker95 locker95 commented Sep 4, 2026

Copy link
Copy Markdown

docker compose exec db find / | less keeps stdin by default, so compose and less both grab the keyboard.

-T already defaults off when stdout isn't a tty. do the same for -i.

Fixes #13129

`docker compose exec ... | less` keeps stdin by default, so compose
and less both grab the keyboard.

Default -i to the same TTY check already used for -T.

Fixes docker#13129

Signed-off-by: Dean Chen <862469039@qq.com>
@locker95
locker95 requested review from a team as code owners September 4, 2026 19:06
@locker95
locker95 requested review from glours and ndeloof September 4, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Keypresses are swallowed when piping docker compose exec output to less

1 participant