Skip to content

Commit

Permalink
Merge pull request #5379 from laurazard/dont-normalize-registry-1
Browse files Browse the repository at this point in the history
Revert "login: normalize `registry-1.docker.io`"
  • Loading branch information
thaJeztah authored Aug 29, 2024
2 parents 3826f5a + dab9674 commit 6273e65
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cli/command/registry/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ func runLogin(ctx context.Context, dockerCli command.Cli, opts loginOptions) err
serverAddress string
response *registrytypes.AuthenticateOKBody
)
if opts.serverAddress != "" &&
opts.serverAddress != registry.DefaultNamespace &&
opts.serverAddress != registry.DefaultRegistryHost {
if opts.serverAddress != "" && opts.serverAddress != registry.DefaultNamespace {
serverAddress = opts.serverAddress
} else {
serverAddress = registry.IndexServer
Expand Down

0 comments on commit 6273e65

Please sign in to comment.