mirror of
https://github.com/docker/compose.git
synced 2026-06-29 12:44:26 +00:00
only force plain mode build if progress is set to auto
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
2c15aef2ed
commit
eec2bb7ea6
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
|
|||
displayMode := progressui.DisplayMode(options.Progress)
|
||||
out := options.Out
|
||||
if out == nil {
|
||||
if !s.dockerCli.Out().IsTerminal() {
|
||||
if displayMode == progress.ModeAuto && !s.dockerCli.Out().IsTerminal() {
|
||||
displayMode = progressui.PlainMode
|
||||
}
|
||||
out = os.Stdout // should be s.dockerCli.Out(), but NewDisplay require access to the underlying *File
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue