Merge pull request #6015 from Benehiko/fix-login-hints
Fix login hints should only show on hub registry
This commit is contained in:
commit
659b026b7f
@ -186,9 +186,12 @@ func PromptUserForCredentials(ctx context.Context, cli Cli, argUser, argPassword
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
if serverAddress == authConfigKey {
|
||||||
out := tui.NewOutput(cli.Err())
|
out := tui.NewOutput(cli.Err())
|
||||||
out.PrintNote("A Personal Access Token (PAT) can be used instead.\n" +
|
out.PrintNote("A Personal Access Token (PAT) can be used instead.\n" +
|
||||||
"To create a PAT, visit " + aec.Underline.Apply("https://app.docker.com/settings") + "\n\n")
|
"To create a PAT, visit " + aec.Underline.Apply("https://app.docker.com/settings") + "\n\n")
|
||||||
|
}
|
||||||
|
|
||||||
argPassword, err = prompt.ReadInput(ctx, cli.In(), cli.Out(), "Password: ")
|
argPassword, err = prompt.ReadInput(ctx, cli.In(), cli.Out(), "Password: ")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return registrytypes.AuthConfig{}, err
|
return registrytypes.AuthConfig{}, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user