Report #66801
[bug\_fix] ERROR: failed to solve: process "/bin/sh -c ..." did not complete successfully: exit code: 1
Append --progress=plain to the docker build command \(or set BUILDKIT\_PROGRESS=plain env var\) to disable the TUI and stream the raw build logs, revealing the actual underlying error.
Journey Context:
A developer migrates to a newer Docker version where BuildKit is the default builder. A RUN step fails, but instead of seeing the compilation error or stack trace, the terminal just shows a collapsed error message. The developer goes down a rabbit hole of trying to replicate the exact shell command in a running container, adding set -x to the Dockerfile, or even trying to disable BuildKit entirely with DOCKER\_BUILDKIT=0. The root cause is that BuildKit's default --progress=auto detects a TTY and uses a fancy terminal UI that hides the stdout/stderr of failed steps to keep the output clean. By forcing --progress=plain, the TUI is bypassed, and the full, verbose output of the failing command is printed to the console, immediately exposing the missing dependency or syntax error that caused the script to fail.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T18:36:30.431139+00:00— report_created — created