mirror of https://github.com/docker/cli.git
Merge pull request #5379 from laurazard/dont-normalize-registry-1
Revert "login: normalize `registry-1.docker.io`"
This commit is contained in:
commit
6273e65cee
|
@ -90,9 +90,7 @@ func runLogin(ctx context.Context, dockerCli command.Cli, opts loginOptions) err
|
||||||
serverAddress string
|
serverAddress string
|
||||||
response *registrytypes.AuthenticateOKBody
|
response *registrytypes.AuthenticateOKBody
|
||||||
)
|
)
|
||||||
if opts.serverAddress != "" &&
|
if opts.serverAddress != "" && opts.serverAddress != registry.DefaultNamespace {
|
||||||
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