Skip to content

fix(build): don't fail bake progress when stdout is not a console - #14184

Open
locker95 wants to merge 1 commit into
docker:mainfrom
locker95:fix/build-console-redirect
Open

fix(build): don't fail bake progress when stdout is not a console#14184
locker95 wants to merge 1 commit into
docker:mainfrom
locker95:fix/build-console-redirect

Conversation

@locker95

@locker95 locker95 commented Sep 5, 2026

Copy link
Copy Markdown

#14090 unwraps the real stdout file so Windows TTY progress works. that also feeds a redirected stdout (compose build >/dev/null) into ConsoleFromFile, which then dies with provided file is not a console.

only unwrap when stdout actually is a terminal, and fall back to plain progress otherwise.

Fixes #14182

docker#14090 hands the real stdout file to buildkit so Windows TTY progress
works. that also passes a redirected stdout (`build >/dev/null`) into
ConsoleFromFile, which errors with "provided file is not a console".

only unwrap a terminal file, and fall back to plain progress otherwise.

Fixes docker#14182

Signed-off-by: Dean Chen <862469039@qq.com>
@locker95
locker95 requested review from a team as code owners September 5, 2026 01:03
@locker95
locker95 requested review from glours and ndeloof September 5, 2026 01:03
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] failed to get console: provided file is not a console

1 participant