|
@@ -42,7 +42,7 @@ func EncodeAuthToBase64(authConfig types.AuthConfig) (string, error) {
|
|
return base64.URLEncoding.EncodeToString(buf), nil
|
|
return base64.URLEncoding.EncodeToString(buf), nil
|
|
}
|
|
}
|
|
|
|
|
|
-// RegistryAuthenticationPrivilegedFunc return a RequestPrivilegeFunc from the specified registry index info
|
|
|
|
|
|
+// RegistryAuthenticationPrivilegedFunc returns a RequestPrivilegeFunc from the specified registry index info
|
|
// for the given command.
|
|
// for the given command.
|
|
func (cli *DockerCli) RegistryAuthenticationPrivilegedFunc(index *registrytypes.IndexInfo, cmdName string) types.RequestPrivilegeFunc {
|
|
func (cli *DockerCli) RegistryAuthenticationPrivilegedFunc(index *registrytypes.IndexInfo, cmdName string) types.RequestPrivilegeFunc {
|
|
return func() (string, error) {
|
|
return func() (string, error) {
|
|
@@ -103,7 +103,7 @@ func (cli *DockerCli) ConfigureAuth(flUser, flPassword, serverAddress string, is
|
|
// will hit this if you attempt docker login from mintty where stdin
|
|
// will hit this if you attempt docker login from mintty where stdin
|
|
// is a pipe, not a character based console.
|
|
// is a pipe, not a character based console.
|
|
if flPassword == "" && !cli.isTerminalIn {
|
|
if flPassword == "" && !cli.isTerminalIn {
|
|
- return authconfig, fmt.Errorf("Error: Cannot perform an interactive logon from a non TTY device")
|
|
|
|
|
|
+ return authconfig, fmt.Errorf("Error: Cannot perform an interactive login from a non TTY device")
|
|
}
|
|
}
|
|
|
|
|
|
authconfig.Username = strings.TrimSpace(authconfig.Username)
|
|
authconfig.Username = strings.TrimSpace(authconfig.Username)
|