diff --git a/cmd/kaniko-docker/main.go b/cmd/kaniko-docker/main.go index 1dddbbd..96292c4 100644 --- a/cmd/kaniko-docker/main.go +++ b/cmd/kaniko-docker/main.go @@ -264,7 +264,7 @@ func createDockerCfgFile(username, password, registry string) error { } func buildRepo(registry, repo string) string { - if registry == "" { + if registry == "" || registry == v1RegistryURL { // No custom registry, just return the repo name return repo }