mirror of https://github.com/docker/cli.git
login: normalize `registry-1.docker.io`
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
This commit is contained in:
parent
6e4818e7d6
commit
e6624676e0
|
@ -88,7 +88,9 @@ func runLogin(ctx context.Context, dockerCli command.Cli, opts loginOptions) err
|
||||||
serverAddress string
|
serverAddress string
|
||||||
response *registrytypes.AuthenticateOKBody
|
response *registrytypes.AuthenticateOKBody
|
||||||
)
|
)
|
||||||
if opts.serverAddress != "" && opts.serverAddress != registry.DefaultNamespace {
|
if opts.serverAddress != "" &&
|
||||||
|
opts.serverAddress != registry.DefaultNamespace &&
|
||||||
|
opts.serverAddress != registry.DefaultRegistryHost {
|
||||||
serverAddress = opts.serverAddress
|
serverAddress = opts.serverAddress
|
||||||
} else {
|
} else {
|
||||||
serverAddress = registry.IndexServer
|
serverAddress = registry.IndexServer
|
||||||
|
|
Loading…
Reference in New Issue