From 4aa13bdf47a025ca82f7b0b69a76e85110be8b57 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 12 Jan 2024 23:54:14 -0500 Subject: [PATCH] feat: alias common registry names to docker.io --- plugins/registry/subcommands.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/registry/subcommands.go b/plugins/registry/subcommands.go index 53d97447d..a5d2c5359 100644 --- a/plugins/registry/subcommands.go +++ b/plugins/registry/subcommands.go @@ -31,6 +31,10 @@ func CommandLogin(server string, username string, password string, passwordStdin return errors.New("Missing password argument") } + if server == "hub.docker.com" || server == "docker.com" { + server = "docker.io" + } + command := []string{ common.DockerBin(), "login",