Skip to content

Commit 9630cc5

Browse files
committed
when ran with ANSI disabled, force progress=plain
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 6c17554 commit 9630cc5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/compose/compose.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,9 @@ func RootCommand(dockerCli command.Cli, backend api.Service) *cobra.Command { //
395395
switch opts.Progress {
396396
case ui.ModeAuto:
397397
ui.Mode = ui.ModeAuto
398+
if ansi == "never" {
399+
ui.Mode = ui.ModePlain
400+
}
398401
case ui.ModeTTY:
399402
if ansi == "never" {
400403
return fmt.Errorf("can't use --progress tty while ANSI support is disabled")

0 commit comments

Comments
 (0)