Merge pull request #5379 from laurazard/dont-normalize-registry-1

Revert "login: normalize `registry-1.docker.io`"
This commit is contained in:
Sebastiaan van Stijn 2024-08-29 13:33:12 +02:00 committed by GitHub
commit 6273e65cee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -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