feat: alias common registry names to docker.io
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user