Fix logs replacement when streaming logs on windows

This commit is contained in:
Guillaume Tardif 2020-07-01 19:04:24 +02:00
parent 5b79bb613a
commit 736b7a4707
1 changed files with 2 additions and 2 deletions

View File

@ -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)