mirror of
https://github.com/docker/compose.git
synced 2025-09-22 17:27:50 +02: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
@ -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…
x
Reference in New Issue
Block a user