Skip to content

Commit 9c76504

Browse files
author
John Howard
committed
Windows: Fix docker login
Signed-off-by: John Howard <[email protected]>
1 parent 5353ccb commit 9c76504

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

api/client/login.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"fmt"
77
"io"
88
"os"
9+
"runtime"
910
"strings"
1011

1112
"github.com/docker/docker/api/types"
@@ -33,6 +34,11 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
3334

3435
cmd.ParseFlags(args, true)
3536

37+
// On Windows, force the use of the regular OS stdin stream. Fixes #14336/#14210
38+
if runtime.GOOS == "windows" {
39+
cli.in = os.Stdin
40+
}
41+
3642
serverAddress := registry.IndexServer
3743
if len(cmd.Args()) > 0 {
3844
serverAddress = cmd.Arg(0)

0 commit comments

Comments
 (0)