diff --git a/pkg/minikube/cruntime/cri.go b/pkg/minikube/cruntime/cri.go index d7b078f273..32bbb0f566 100644 --- a/pkg/minikube/cruntime/cri.go +++ b/pkg/minikube/cruntime/cri.go @@ -266,8 +266,8 @@ func criContainerLogCmd(cr CommandRunner, id string, len int, follow bool) strin // warning this is only meant for kuberentes images where we know the GCR addreses have .io in them // not mean to be used for public images func addRepoTagToImageName(imgName string) string { - if !strings.Contains(imgName, ".io/") { - return "docker.io/" + imgName - } // else it already has repo name dont add anything - return imgName + if !strings.Contains(imgName, ".io/") { + return "docker.io/" + imgName + } // else it already has repo name dont add anything + return imgName }