From 00895670e7c43ace8295695e6bc0c43b27d74d5a Mon Sep 17 00:00:00 2001 From: "Justin Terry (VM)" Date: Mon, 11 Feb 2019 23:11:40 -0800 Subject: [PATCH] Stop sending stderr with TTY on Windows Signed-off-by: Justin Terry (VM) --- cmd/ctr/commands/tasks/tasks_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ctr/commands/tasks/tasks_windows.go b/cmd/ctr/commands/tasks/tasks_windows.go index f6ec5563a..f3831ea3e 100644 --- a/cmd/ctr/commands/tasks/tasks_windows.go +++ b/cmd/ctr/commands/tasks/tasks_windows.go @@ -64,7 +64,7 @@ func NewTask(ctx gocontext.Context, client *containerd.Client, container contain if nullIO { return nil, errors.New("tty and null-io cannot be used together") } - ioCreator = cio.NewCreator(append([]cio.Opt{cio.WithStreams(con, con, con), cio.WithTerminal}, ioOpts...)...) + ioCreator = cio.NewCreator(append([]cio.Opt{cio.WithStreams(con, con, nil), cio.WithTerminal}, ioOpts...)...) } else if nullIO { ioCreator = cio.NullIO } else {