mirror of
https://github.com/docker/compose.git
synced 2026-10-12 02:13:08 +00:00
only force plain mode build if progress is set to auto
Signed-off-by: Nicolas De Loof <[email protected]>
This commit is contained in:
committed by
Guillaume Lours
parent
2c15aef2ed
commit
eec2bb7ea6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user