-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Description
Contributing guidelines and issue reporting guide
- I've read the contributing guidelines and wholeheartedly agree. I've also read the issue reporting guide.
Well-formed report checklist
- I have found a bug that the documentation does not mention anything about my problem
- I have found a bug that there are no open or closed issues that are related to my problem
- I have provided version/information about my environment and done my best to provide a reproducer
Description of bug
Bug description
There appears to be no way to hide normal progress output while preserving stderr from failing commands:
- docker build --quiet .
- docker build --progress=quiet .
- docker build --progress=none .
These all output the secondary failure, not the primary failure (see below):
Primary failure
ls: cannot access '/nonexisting': No such file or directory
Secondary failure:
ERROR: failed to build: failed to solve: process "/bin/sh -c ls /nonexisting" did not complete successfully: exit code: 2
Reproduction
-
To demonstrate, put a failing command in Dockerfile:
RUN ls /nonexisting
-
Observe that without --quiet, we see progress, the primary failure and the secondary failure.
-
Observe that with --quiet (or any of the other options), we don't get to see the primary failure.
The objective is to disable progress output without hiding the primary error output.
Version information
Docker version 28.5.1-ce, build f8215cc26Reactions are currently unavailable