mirror of https://github.com/docker/compose.git
Fix logs replacement when streaming logs on windows
This commit is contained in:
parent
5b79bb613a
commit
736b7a4707
|
@ -18,8 +18,8 @@ package cmd
|
|||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
|
||||
"github.com/containerd/console"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
|
@ -59,7 +59,7 @@ func runLogs(ctx context.Context, containerName string, opts logsOpts) error {
|
|||
req := containers.LogsRequest{
|
||||
Follow: opts.Follow,
|
||||
Tail: opts.Tail,
|
||||
Writer: os.Stdout,
|
||||
Writer: console.Current(),
|
||||
}
|
||||
|
||||
return c.ContainerService().Logs(ctx, containerName, req)
|
||||
|
|
Loading…
Reference in New Issue