Merge pull request #6459 from dokku/registry-alias

Alias common registry names to docker.io
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2024-01-18 22:11:28 -05:00
commit 428ad046c6
1 file changed
+4
+4
View File
@@ -31,6 +31,10 @@ func CommandLogin(server string, username string, password string, passwordStdin
return errors.New("Missing password argument") return errors.New("Missing password argument")
} }
if server == "hub.docker.com" || server == "docker.com" {
server = "docker.io"
}
command := []string{ command := []string{
common.DockerBin(), common.DockerBin(),
"login", "login",