Skip to content

Commit

Permalink
Merge pull request moby#17738 from Microsoft/jjh/login
Browse files Browse the repository at this point in the history
Windows: [TP4] Fix docker login
  • Loading branch information
calavera committed Nov 6, 2015
2 parents 754c2e0 + 9c76504 commit f198334
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/client/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"io"
"os"
"runtime"
"strings"

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

cmd.ParseFlags(args, true)

// On Windows, force the use of the regular OS stdin stream. Fixes #14336/#14210
if runtime.GOOS == "windows" {
cli.in = os.Stdin
}

serverAddress := registry.IndexServer
if len(cmd.Args()) > 0 {
serverAddress = cmd.Arg(0)
Expand Down

0 comments on commit f198334

Please sign in to comment.