Repository: kubernetes/minikube (go)

Issue:
Fallback to using tag is SHA256 is not present
### What Happened?

I want to start minikube offline in one machine which can only be visited within the enterprise network，I took steps as following:
step1: I started minikube in A machine online with command like this：
minikube start --driver=docker --registry-mirror=http://vppbudzy.mirror.aliyun.com --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers --alsologtostderr -v=1 --native-ssh=false
step2: I copied .minikube directory from A machine to machine B.
step3: I started minikube in B(offline) machine with command like this：
minikube start --driver=docker --registry-mirror=http://vppbudzy.mirror.aliyun.com --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers --alsologtostderr -v=1 --native-ssh=false

But, it failed, outputed contents can be found in attachment. I found some log messages contradicted each other，for example:
I0311 20:03:14.114373   14562 cache.go:151] successfully saved registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 as a tarball
I0311 20:03:14.114379   14562 cache.go:162] Loading registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 from local cache
I0311 20:03:15.531826   14562 cache.go:165] successfully loaded registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 from cached tarball
.......................
......................
Unable to find image 'registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2' locally
docker: Error response from daemon: Get "https://registry.cn-hangzhou.aliyuncs.com/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).

other information:
Both machine A (online) and machine B run in OpenSUSE 15.1. Docker run normally.
Minikube version: v1.25.2


### Attach the log file

I0311 20:03:13.994251   14562 out.go:297] Setting OutFile to fd 1 ...
I0311 20:03:13.994320   14562 out.go:349] isatty.IsTerminal(1) = true
I0311 20:03:13.994328   14562 out.go:310] Setting ErrFile to fd 2...
I0311 20:03:13.994336   14562 out.go:349] isatty.IsTerminal(2) = true
I0311 20:03:13.994429   14562 root.go:315] Updating PATH: /home/admin/.minikube/bin
W0311 20:03:13.994542   14562 root.go:293] Error reading config file at /home/admin/.minikube/config/config.json: open /home/admin/.minikube/config/config.json: no such file or directory
I0311 20:03:13.994649   14562 out.go:304] Setting JSON to false
I0311 20:03:13.997571   14562 start.go:112] hostinfo: {"hostname":"iZuf6533jbifuhtgmbi2xkZ","uptime":27586,"bootTime":1646972608,"procs":105,"os":"linux","platform":"opensuse-leap","platformFamily":"suse","platformVersion":"15.1","kernelVersion":"4.12.14-lp151.28.52-default","kernelArch":"x86_64","virtualizationSystem":"","virtualizationRole":"guest","hostId":"20200623-1902-0867-2074-002063468121"}
I0311 20:03:13.997618   14562 start.go:122] virtualization:  guest
I0311 20:03:13.999080   14562 out.go:176] 😄  minikube v1.25.2 on Opensuse-Leap 15.1 (amd64)
😄  minikube v1.25.2 on Opensuse-Leap 15.1 (amd64)
W0311 20:03:13.999207   14562 preload.go:295] Failed to list preload files: open /home/admin/.minikube/cache/preloaded-tarball: no such file or directory
I0311 20:03:13.999298   14562 notify.go:193] Checking for updates...
I0311 20:03:13.999412   14562 config.go:176] Loaded profile config "minikube": Driver=docker, ContainerRuntime=docker, KubernetesVersion=v1.23.3
I0311 20:03:13.999725   14562 driver.go:344] Setting default libvirt URI to qemu:///system
I0311 20:03:14.029496   14562 docker.go:132] docker version: linux-19.03.11
I0311 20:03:14.029550   14562 cli_runner.go:133] Run: docker system info --format "{{json .}}"
I0311 20:03:14.057769   14562 info.go:263] docker info: {ID:SKVA:UJ5F:SLAP:YVPK:RITE:S3MA:QYE4:YXBH:LXCV:KYPX:BN5Y:6AST Containers:0 ContainersRunning:0 ContainersPaused:0 ContainersStopped:0 Images:1 Driver:overlay2 DriverStatus:[[Backing Filesystem extfs] [Supports d_type true] [Native Overlay Diff true]] SystemStatus:<nil> Plugins:{Volume:[local] Network:[bridge host ipvlan macvlan null overlay] Authorization:<nil> Log:[awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog]} MemoryLimit:true SwapLimit:false KernelMemory:true KernelMemoryTCP:true CPUCfsPeriod:true CPUCfsQuota:true CPUShares:true CPUSet:true PidsLimit:true IPv4Forwarding:true BridgeNfIptables:true BridgeNfIP6Tables:true Debug:false NFd:24 OomKillDisable:true NGoroutines:40 SystemTime:2022-03-11 20:03:14.051074062 +0800 CST LoggingDriver:json-file CgroupDriver:cgroupfs NEventsListener:0 KernelVersion:4.12.14-lp151.28.52-default OperatingSystem:openSUSE Leap 15.1 OSType:linux Architecture:x86_64 IndexServerAddress:https://index.docker.io/v1/ RegistryConfig:{AllowNondistributableArtifactsCIDRs:[] AllowNondistributableArtifactsHostnames:[] InsecureRegistryCIDRs:[127.0.0.0/8] IndexConfigs:{DockerIo:{Name:docker.io Mirrors:[] Secure:true Official:true}} Mirrors:[]} NCPU:4 MemTotal:8075190272 GenericResources:<nil> DockerRootDir:/var/lib/docker HTTPProxy: HTTPSProxy: NoProxy: Name:iZuf6533jbifuhtgmbi2xkZ Labels:[] ExperimentalBuild:false ServerVersion:19.03.11 ClusterStore: ClusterAdvertise: Runtimes:{Runc:{Path:docker-runc}} DefaultRuntime:runc Swarm:{NodeID: NodeAddr: LocalNodeState:inactive ControlAvailable:false Error: RemoteManagers:<nil>} LiveRestoreEnabled:false Isolation: InitBinary:docker-init ContainerdCommit:{ID:7ad184331fa3e55e52b890ea95e65ba581ae3429 Expected:7ad184331fa3e55e52b890ea95e65ba581ae3429} RuncCommit:{ID:dc9208a3303feef5b3839f4323d9beb36df0a9dd Expected:dc9208a3303feef5b3839f4323d9beb36df0a9dd} InitCommit:{ID: Expected:} SecurityOptions:[name=apparmor name=seccomp,profile=default] ProductLicense: Warnings:[WARNING: No swap limit support] ServerErrors:[] ClientInfo:{Debug:false Plugins:[] Warnings:<nil>}}
I0311 20:03:14.057826   14562 docker.go:237] overlay module found
I0311 20:03:14.059344   14562 out.go:176] ✨  Using the docker driver based on existing profile
✨  Using the docker driver based on existing profile
I0311 20:03:14.059360   14562 start.go:281] selected driver: docker
I0311 20:03:14.059368   14562 start.go:798] validating driver "docker" against &{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 Memory:2200 CPUs:2 DiskSize:20000 VMDriver: Driver:docker HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] ContainerVolumeMounts:[/home/admin/zark/:/home/admin/zark/] InsecureRegistry:[] RegistryMirror:[http://vppbudzy.mirror.aliyun.com] HostOnlyCIDR:192.168.59.1/24 HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false KVMNUMACount:1 DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio SSHIPAddress: SSHUser:root SSHKey: SSHPort:22 KubernetesConfig:{KubernetesVersion:v1.23.3 ClusterName:minikube Namespace:default APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository:registry.cn-hangzhou.aliyuncs.com/google_containers LoadBalancerStartIP: LoadBalancerEndIP: CustomIngressCert: ExtraOptions:[{Component:kubelet Key:housekeeping-interval Value:5m}] ShouldLoadCachedImages:true EnableDefaultCNI:false CNI: NodeIP: NodePort:8443 NodeName:} Nodes:[{Name: IP:192.168.49.2 Port:8443 KubernetesVersion:v1.23.3 ContainerRuntime:docker ControlPlane:true Worker:true}] Addons:map[ambassador:false auto-pause:false csi-hostpath-driver:false dashboard:false default-storageclass:true efk:false freshpod:false gcp-auth:false gvisor:false helm-tiller:false ingress:false ingress-dns:false istio:false istio-provisioner:false kong:false kubevirt:false logviewer:false metallb:false metrics-server:false nvidia-driver-installer:false nvidia-gpu-device-plugin:false olm:false pod-security-policy:false portainer:false registry:false registry-aliases:false registry-creds:false storage-provisioner:true storage-provisioner-gluster:false volumesnapshots:false] CustomAddonImages:map[] CustomAddonRegistries:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s ScheduledStop:<nil> ExposedPorts:[] ListenAddress: Network: MultiNodeRequested:false ExtraDisks:0 CertExpiration:26280h0m0s Mount:true MountString:/home/admin/zark/:/home/admin/zark/ Mount9PVersion:9p2000.L MountGID:docker MountIP: MountMSize:262144 MountOptions:[] MountPort:0 MountType:9p MountUID:docker BinaryMirror: DisableOptimizations:false}
I0311 20:03:14.059447   14562 start.go:809] status for docker: {Installed:true Healthy:true Running:false NeedsImprovement:false Error:<nil> Reason: Fix: Doc: Version:}
I0311 20:03:14.059635   14562 cli_runner.go:133] Run: docker system info --format "{{json .}}"
I0311 20:03:14.087576   14562 info.go:263] docker info: {ID:SKVA:UJ5F:SLAP:YVPK:RITE:S3MA:QYE4:YXBH:LXCV:KYPX:BN5Y:6AST Containers:0 ContainersRunning:0 ContainersPaused:0 ContainersStopped:0 Images:1 Driver:overlay2 DriverStatus:[[Backing Filesystem extfs] [Supports d_type true] [Native Overlay Diff true]] SystemStatus:<nil> Plugins:{Volume:[local] Network:[bridge host ipvlan macvlan null overlay] Authorization:<nil> Log:[awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog]} MemoryLimit:true SwapLimit:false KernelMemory:true KernelMemoryTCP:true CPUCfsPeriod:true CPUCfsQuota:true CPUShares:true CPUSet:true PidsLimit:true IPv4Forwarding:true BridgeNfIptables:true BridgeNfIP6Tables:true Debug:false NFd:24 OomKillDisable:true NGoroutines:40 SystemTime:2022-03-11 20:03:14.08097984 +0800 CST LoggingDriver:json-file CgroupDriver:cgroupfs NEventsListener:0 KernelVersion:4.12.14-lp151.28.52-default OperatingSystem:openSUSE Leap 15.1 OSType:linux Architecture:x86_64 IndexServerAddress:https://index.docker.io/v1/ RegistryConfig:{AllowNondistributableArtifactsCIDRs:[] AllowNondistributableArtifactsHostnames:[] InsecureRegistryCIDRs:[127.0.0.0/8] IndexConfigs:{DockerIo:{Name:docker.io Mirrors:[] Secure:true Official:true}} Mirrors:[]} NCPU:4 MemTotal:8075190272 GenericResources:<nil> DockerRootDir:/var/lib/docker HTTPProxy: HTTPSProxy: NoProxy: Name:iZuf6533jbifuhtgmbi2xkZ Labels:[] ExperimentalBuild:false ServerVersion:19.03.11 ClusterStore: ClusterAdvertise: Runtimes:{Runc:{Path:docker-runc}} DefaultRuntime:runc Swarm:{NodeID: NodeAddr: LocalNodeState:inactive ControlAvailable:false Error: RemoteManagers:<nil>} LiveRestoreEnabled:false Isolation: InitBinary:docker-init ContainerdCommit:{ID:7ad184331fa3e55e52b890ea95e65ba581ae3429 Expected:7ad184331fa3e55e52b890ea95e65ba581ae3429} RuncCommit:{ID:dc9208a3303feef5b3839f4323d9beb36df0a9dd Expected:dc9208a3303feef5b3839f4323d9beb36df0a9dd} InitCommit:{ID: Expected:} SecurityOptions:[name=apparmor name=seccomp,profile=default] ProductLicense: Warnings:[WARNING: No swap limit support] ServerErrors:[] ClientInfo:{Debug:false Plugins:[] Warnings:<nil>}}
I0311 20:03:14.087939   14562 cni.go:93] Creating CNI manager for ""
I0311 20:03:14.087950   14562 cni.go:167] CNI unnecessary in this configuration, recommending no CNI
I0311 20:03:14.087960   14562 start_flags.go:302] config:
{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 Memory:2200 CPUs:2 DiskSize:20000 VMDriver: Driver:docker HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] ContainerVolumeMounts:[/home/admin/zark/:/home/admin/zark/] InsecureRegistry:[] RegistryMirror:[http://vppbudzy.mirror.aliyun.com] HostOnlyCIDR:192.168.59.1/24 HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false KVMNUMACount:1 DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio SSHIPAddress: SSHUser:root SSHKey: SSHPort:22 KubernetesConfig:{KubernetesVersion:v1.23.3 ClusterName:minikube Namespace:default APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository:registry.cn-hangzhou.aliyuncs.com/google_containers LoadBalancerStartIP: LoadBalancerEndIP: CustomIngressCert: ExtraOptions:[{Component:kubelet Key:housekeeping-interval Value:5m}] ShouldLoadCachedImages:true EnableDefaultCNI:false CNI: NodeIP: NodePort:8443 NodeName:} Nodes:[{Name: IP:192.168.49.2 Port:8443 KubernetesVersion:v1.23.3 ContainerRuntime:docker ControlPlane:true Worker:true}] Addons:map[ambassador:false auto-pause:false csi-hostpath-driver:false dashboard:false default-storageclass:true efk:false freshpod:false gcp-auth:false gvisor:false helm-tiller:false ingress:false ingress-dns:false istio:false istio-provisioner:false kong:false kubevirt:false logviewer:false metallb:false metrics-server:false nvidia-driver-installer:false nvidia-gpu-device-plugin:false olm:false pod-security-policy:false portainer:false registry:false registry-aliases:false registry-creds:false storage-provisioner:true storage-provisioner-gluster:false volumesnapshots:false] CustomAddonImages:map[] CustomAddonRegistries:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s ScheduledStop:<nil> ExposedPorts:[] ListenAddress: Network: MultiNodeRequested:false ExtraDisks:0 CertExpiration:26280h0m0s Mount:true MountString:/home/admin/zark/:/home/admin/zark/ Mount9PVersion:9p2000.L MountGID:docker MountIP: MountMSize:262144 MountOptions:[] MountPort:0 MountType:9p MountUID:docker BinaryMirror: DisableOptimizations:false}
I0311 20:03:14.089471   14562 out.go:176] 👍  Starting control plane node minikube in cluster minikube
👍  Starting control plane node minikube in cluster minikube
I0311 20:03:14.089488   14562 cache.go:120] Beginning downloading kic base image for docker with docker
I0311 20:03:14.090658   14562 out.go:176] 🚜  Pulling base image ...
🚜  Pulling base image ...
I0311 20:03:14.090753   14562 image.go:75] Checking for registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 in local docker daemon
I0311 20:03:14.090767   14562 profile.go:148] Saving config to /home/admin/.minikube/profiles/minikube/config.json ...
I0311 20:03:14.090827   14562 cache.go:107] acquiring lock: {Name:mk3eead60cba61410ae49b1e54d9c0dca6f5dd56 Clock:{} Delay:500ms Timeout:10m0s Cancel:<nil>}
I0311 20:03:14.090827   14562 cache.go:107] acquiring lock: {Name:mk81d85d684f5a2b17ea50dff9df877a85cc0168 Clock:{} Delay:500ms Timeout:10m0s Cancel:<nil>}
I0311 20:03:14.091336   14562 cache.go:115] /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/metrics-scraper_v1.0.7 exists
I0311 20:03:14.091360   14562 cache.go:96] cache image "registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/metrics-scraper:v1.0.7" -> "/home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/metrics-scraper_v1.0.7" took 541.272µs
I0311 20:03:14.091378   14562 cache.go:80] save to tar file registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/metrics-scraper:v1.0.7 -> /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/metrics-scraper_v1.0.7 succeeded
I0311 20:03:14.091399   14562 cache.go:115] /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/pause_3.6 exists
I0311 20:03:14.091410   14562 cache.go:96] cache image "registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.6" -> "/home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/pause_3.6" took 591.995µs
I0311 20:03:14.091421   14562 cache.go:80] save to tar file registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.6 -> /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/pause_3.6 succeeded
I0311 20:03:14.091445   14562 cache.go:107] acquiring lock: {Name:mk901ce71043db284a7d0597784121cf7be816f2 Clock:{} Delay:500ms Timeout:10m0s Cancel:<nil>}
I0311 20:03:14.091495   14562 cache.go:115] /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/etcd_3.5.1-0 exists
I0311 20:03:14.091506   14562 cache.go:96] cache image "registry.cn-hangzhou.aliyuncs.com/google_containers/etcd:3.5.1-0" -> "/home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/etcd_3.5.1-0" took 64.301µs
I0311 20:03:14.091519   14562 cache.go:80] save to tar file registry.cn-hangzhou.aliyuncs.com/google_containers/etcd:3.5.1-0 -> /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/etcd_3.5.1-0 succeeded
I0311 20:03:14.091534   14562 cache.go:107] acquiring lock: {Name:mk0a035f22316a17275f37bfbdaa6a91fd691c3b Clock:{} Delay:500ms Timeout:10m0s Cancel:<nil>}
I0311 20:03:14.091576   14562 cache.go:115] /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/coredns/coredns_v1.8.6 exists
I0311 20:03:14.091585   14562 cache.go:96] cache image "registry.cn-hangzhou.aliyuncs.com/google_containers/coredns/coredns:v1.8.6" -> "/home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/coredns/coredns_v1.8.6" took 53.551µs
I0311 20:03:14.091595   14562 cache.go:80] save to tar file registry.cn-hangzhou.aliyuncs.com/google_containers/coredns/coredns:v1.8.6 -> /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/coredns/coredns_v1.8.6 succeeded
I0311 20:03:14.091611   14562 cache.go:107] acquiring lock: {Name:mk762c70a310aef0878233ed678f0ec30948dce4 Clock:{} Delay:500ms Timeout:10m0s Cancel:<nil>}
I0311 20:03:14.090911   14562 cache.go:107] acquiring lock: {Name:mkc5f6386834a87af382bb2887c5d9a0f4bc0e4e Clock:{} Delay:500ms Timeout:10m0s Cancel:<nil>}
I0311 20:03:14.091661   14562 cache.go:115] /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver_v1.23.3 exists
I0311 20:03:14.091671   14562 cache.go:96] cache image "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.23.3" -> "/home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver_v1.23.3" took 761.302µs
I0311 20:03:14.091682   14562 cache.go:80] save to tar file registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.23.3 -> /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver_v1.23.3 succeeded
I0311 20:03:14.091700   14562 cache.go:107] acquiring lock: {Name:mka59612f2112af099d925c48b3776e78942aaf8 Clock:{} Delay:500ms Timeout:10m0s Cancel:<nil>}
I0311 20:03:14.091736   14562 cache.go:115] /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/dashboard_v2.3.1 exists
I0311 20:03:14.091746   14562 cache.go:96] cache image "registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/dashboard:v2.3.1" -> "/home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/dashboard_v2.3.1" took 51.607µs
I0311 20:03:14.091758   14562 cache.go:80] save to tar file registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/dashboard:v2.3.1 -> /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/dashboard_v2.3.1 succeeded
I0311 20:03:14.091793   14562 cache.go:115] /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/k8s-minikube/storage-provisioner_v5 exists
I0311 20:03:14.091803   14562 cache.go:96] cache image "registry.cn-hangzhou.aliyuncs.com/google_containers/k8s-minikube/storage-provisioner:v5" -> "/home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/k8s-minikube/storage-provisioner_v5" took 193.955µs
I0311 20:03:14.091813   14562 cache.go:80] save to tar file registry.cn-hangzhou.aliyuncs.com/google_containers/k8s-minikube/storage-provisioner:v5 -> /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/k8s-minikube/storage-provisioner_v5 succeeded
I0311 20:03:14.091849   14562 cache.go:107] acquiring lock: {Name:mkac1ba37d459ae0daae481e48c23c5f93ec3275 Clock:{} Delay:500ms Timeout:10m0s Cancel:<nil>}
I0311 20:03:14.091855   14562 cache.go:107] acquiring lock: {Name:mk0a03310f4afb37a37a89e7cd934cda3da6a4ec Clock:{} Delay:500ms Timeout:10m0s Cancel:<nil>}
I0311 20:03:14.091937   14562 cache.go:107] acquiring lock: {Name:mkc42178d735fc62000ade8518993c42d68f25ad Clock:{} Delay:500ms Timeout:10m0s Cancel:<nil>}
I0311 20:03:14.091996   14562 cache.go:115] /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager_v1.23.3 exists
I0311 20:03:14.092008   14562 cache.go:96] cache image "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.23.3" -> "/home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager_v1.23.3" took 76.599µs
I0311 20:03:14.092023   14562 cache.go:80] save to tar file registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.23.3 -> /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager_v1.23.3 succeeded
I0311 20:03:14.091923   14562 cache.go:115] /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler_v1.23.3 exists
I0311 20:03:14.092042   14562 cache.go:96] cache image "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.23.3" -> "/home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler_v1.23.3" took 195.924µs
I0311 20:03:14.092064   14562 cache.go:80] save to tar file registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.23.3 -> /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler_v1.23.3 succeeded
I0311 20:03:14.092082   14562 cache.go:115] /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy_v1.23.3 exists
I0311 20:03:14.092112   14562 cache.go:96] cache image "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.23.3" -> "/home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy_v1.23.3" took 261.091µs
I0311 20:03:14.092146   14562 cache.go:80] save to tar file registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.23.3 -> /home/admin/.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy_v1.23.3 succeeded
I0311 20:03:14.092172   14562 cache.go:87] Successfully saved all images to host disk.
I0311 20:03:14.114233   14562 cache.go:148] Downloading registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 to local cache
I0311 20:03:14.114342   14562 image.go:59] Checking for registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 in local cache directory
I0311 20:03:14.114354   14562 image.go:62] Found registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 in local cache directory, skipping pull
I0311 20:03:14.114361   14562 image.go:103] registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 exists in cache, skipping pull
I0311 20:03:14.114373   14562 cache.go:151] successfully saved registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 as a tarball
I0311 20:03:14.114379   14562 cache.go:162] Loading registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 from local cache
I0311 20:03:15.531826   14562 cache.go:165] successfully loaded registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 from cached tarball
I0311 20:03:15.531848   14562 cache.go:208] Successfully downloaded all kic artifacts
I0311 20:03:15.531877   14562 start.go:313] acquiring machines lock for minikube: {Name:mk3ec630fb73d7fe5feb0335080e0da3bf1e5c1b Clock:{} Delay:500ms Timeout:10m0s Cancel:<nil>}
I0311 20:03:15.531954   14562 start.go:317] acquired machines lock for "minikube" in 62.212µs
I0311 20:03:15.531968   14562 start.go:93] Skipping create...Using existing machine configuration
I0311 20:03:15.531976   14562 fix.go:55] fixHost starting: 
I0311 20:03:15.532150   14562 cli_runner.go:133] Run: docker container inspect minikube --format={{.State.Status}}
W0311 20:03:15.555079   14562 cli_runner.go:180] docker container inspect minikube --format={{.State.Status}} returned with exit code 1
I0311 20:03:15.555126   14562 fix.go:108] recreateIfNeeded on minikube: state= err=unknown state "minikube": docker container inspect minikube --format={{.State.Status}}: exit status 1
stdout:

 
I0311 20:03:31.447449   14562 cli_runner.go:133] Run: docker rm -f -v minikube
W0311 20:03:31.469954   14562 cli_runner.go:180] docker rm -f -v minikube returned with exit code 1
W0311 20:03:31.470086   14562 delete.go:139] delete failed (probably ok) <nil>
I0311 20:03:31.470095   14562 fix.go:120] Sleeping 1 second for extra luck!
I0311 20:03:32.470170   14562 start.go:126] createHost starting for "" (driver="docker")
I0311 20:03:32.471770   14562 out.go:203] 🔥  Creating docker container (CPUs=2, Memory=2200MB) ...
🔥  Creating docker container (CPUs=2, Memory=2200MB) ...| I0311 20:03:32.472224   14562 start.go:160] libmachine.API.Create for "minikube" (driver="docker")
I0311 20:03:32.472253   14562 client.go:168] LocalClient.Create starting
I0311 20:03:32.472313   14562 main.go:130] libmachine: Reading certificate data from /home/admin/.minikube/certs/ca.pem
I0311 20:03:32.472344   14562 main.go:130] libmachine: Decoding PEM data...
I0311 20:03:32.472364   14562 main.go:130] libmachine: Parsing certificate...
I0311 20:03:32.472423   14562 main.go:130] libmachine: Reading certificate data from /home/admin/.minikube/certs/cert.pem
I0311 20:03:32.472448   14562 main.go:130] libmachine: Decoding PEM data...
I0311 20:03:32.472464   14562 main.go:130] libmachine: Parsing certificate...
I0311 20:03:32.472680   14562 cli_runner.go:133] Run: docker network inspect minikube --format "{"Name": "{{.Name}}","Driver": "{{.Driver}}","Subnet": "{{range .IPAM.Config}}{{.Subnet}}{{end}}","Gateway": "{{range .IPAM.Config}}{{.Gateway}}{{end}}","MTU": {{if (index .Options "com.docker.network.driver.mtu")}}{{(index .Options "com.docker.network.driver.mtu")}}{{else}}0{{end}}, "ContainerIPs": [{{range $k,$v := .Containers }}"{{$v.IPv4Address}}",{{end}}]}"
I0311 20:03:32.497005   14562 network_create.go:67] Found existing network {name:minikube subnet:0xc000f10180 gateway:[0 0 0 0 0 0 0 0 0 0 255 255 192 168 49 1] mtu:1500}
I0311 20:03:32.497030   14562 kic.go:106] calculated static IP "192.168.49.2" for the "minikube" container
I0311 20:03:32.497069   14562 cli_runner.go:133] Run: docker ps -a --format {{.Names}}
I0311 20:03:32.518924   14562 cli_runner.go:133] Run: docker volume create minikube --label name.minikube.sigs.k8s.io=minikube --label created_by.minikube.sigs.k8s.io=true
I0311 20:03:32.540224   14562 oci.go:102] Successfully created a docker volume minikube
I0311 20:03:32.540275   14562 cli_runner.go:133] Run: docker run --rm --name minikube-preload-sidecar --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --entrypoint /usr/bin/test -v minikube:/var registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 -d /var/lib
\ W0311 20:03:44.000291   14562 notify.go:58] Error getting json from minikube version url: error with http GET for endpoint https://storage.googleapis.com/minikube/releases-v2.json: Get "https://storage.googleapis.com/minikube/releases-v2.json": dial tcp 142.251.42.240:443: i/o timeout
- W0311 20:03:47.577360   14562 cli_runner.go:180] docker run --rm --name minikube-preload-sidecar --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --entrypoint /usr/bin/test -v minikube:/var registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 -d /var/lib returned with exit code 125
I0311 20:03:47.577383   14562 cli_runner.go:186] Completed: docker run --rm --name minikube-preload-sidecar --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --entrypoint /usr/bin/test -v minikube:/var registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 -d /var/lib: (15.037057424s)
I0311 20:03:47.577424   14562 client.go:171] LocalClient.Create took 15.105161065s
- I0311 20:03:49.578547   14562 ssh_runner.go:195] Run: sh -c "df -h /var | awk 'NR==2{print $5}'"
I0311 20:03:49.578588   14562 cli_runner.go:133] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
W0311 20:03:49.602002   14562 cli_runner.go:180] docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube returned with exit code 1
I0311 20:03:49.602086   14562 retry.go:31] will retry after 149.242379ms: new client: new client: Error creating new ssh host from driver: Error getting ssh port for driver: get ssh host-port: get port 22 for "minikube": docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube: exit status 1

stderr:
Error: No such container: minikube
I0311 20:03:52.595104   14562 fix.go:57] fixHost completed within 37.063129411s
I0311 20:03:52.595114   14562 start.go:80] releasing machines lock for "minikube", held for 37.063151664s
W0311 20:03:52.595138   14562 start.go:570] error starting host: recreate: creating host: create: creating: setting up container node: preparing volume for minikube container: docker run --rm --name minikube-preload-sidecar --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --entrypoint /usr/bin/test -v minikube:/var registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 -d /var/lib: exit status 125
stdout:

stderr:
Unable to find image 'registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2' locally
docker: Error response from daemon: Get "https://registry.cn-hangzhou.aliyuncs.com/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.

I0311 20:03:52.595306   14562 start.go:585] Will try again in 5 seconds ...
I0311 20:03:57.596634   14562 start.go:313] acquiring machines lock for minikube: {Name:mk3ec630fb73d7fe5feb0335080e0da3bf1e5c1b Clock:{} Delay:500ms Timeout:10m0s Cancel:<nil>}
I0311 20:03:57.596737   14562 start.go:317] acquired machines lock for "minikube" in 76.14µs
I0311 20:03:57.596754   14562 start.go:93] Skipping create...Using existing machine configuration
I0311 20:03:57.596764   14562 fix.go:55] fixHost starting: 
I0311 20:03:57.596942   14562 cli_runner.go:133] Run: docker container inspect minikube --format={{.State.Status}}
W0311 20:03:57.620486   14562 cli_runner.go:180] docker container inspect minikube --format={{.State.Status}} returned with exit code 1
I0311 20:03:57.620525   14562 fix.go:108] recreateIfNeeded on minikube: state= err=unknown state "minikube": docker container inspect minikube --format={{.State.Status}}: exit status 1
stdout:


stderr:
Error: No such container: minikube
I0311 20:04:02.126706   14562 oci.go:673] temporary error: container minikube status is  but expect it to be exited
I0311 20:04:02.126728   14562 retry.go:31] will retry after 2.179080774s: couldn't verify container is exited. %v: unknown state "minikube": docker container inspect minikube --format={{.State.Status}}: exit status 1
stdout:

 
I0311 20:04:16.206574   14562 cli_runner.go:133] Run: docker rm -f -v minikube
W0311 20:04:16.228340   14562 cli_runner.go:180] docker rm -f -v minikube returned with exit code 1
W0311 20:04:16.228495   14562 delete.go:139] delete failed (probably ok) <nil>
I0311 20:04:16.228505   14562 fix.go:120] Sleeping 1 second for extra luck!
I0311 20:04:17.228547   14562 start.go:126] createHost starting for "" (driver="docker")
I0311 20:04:17.230147   14562 out.go:203] 🔥  Creating docker container (CPUs=2, Memory=2200MB) ...
🔥  Creating docker container (CPUs=2, Memory=2200MB) ...| I0311 20:04:17.230265   14562 start.go:160] libmachine.API.Create for "minikube" (driver="docker")
I0311 20:04:17.230284   14562 client.go:168] LocalClient.Create starting
I0311 20:04:17.230330   14562 main.go:130] libmachine: Reading certificate data from /home/admin/.minikube/certs/ca.pem
I0311 20:04:17.230356   14562 main.go:130] libmachine: Decoding PEM data...
I0311 20:04:17.230372   14562 main.go:130] libmachine: Parsing certificate...
I0311 20:04:17.230412   14562 main.go:130] libmachine: Reading certificate data from /home/admin/.minikube/certs/cert.pem
I0311 20:04:17.230431   14562 main.go:130] libmachine: Decoding PEM data...
I0311 20:04:17.230442   14562 main.go:130] libmachine: Parsing certificate...
I0311 20:04:17.230612   14562 cli_runner.go:133] Run: docker network inspect minikube --format "{"Name": "{{.Name}}","Driver": "{{.Driver}}","Subnet": "{{range .IPAM.Config}}{{.Subnet}}{{end}}","Gateway": "{{range .IPAM.Config}}{{.Gateway}}{{end}}","MTU": {{if (index .Options "com.docker.network.driver.mtu")}}{{(index .Options "com.docker.network.driver.mtu")}}{{else}}0{{end}}, "ContainerIPs": [{{range $k,$v := .Containers }}"{{$v.IPv4Address}}",{{end}}]}"
I0311 20:04:17.254364   14562 network_create.go:67] Found existing network {name:minikube subnet:0xc000bf3c50 gateway:[0 0 0 0 0 0 0 0 0 0 255 255 192 168 49 1] mtu:1500}
I0311 20:04:17.254390   14562 kic.go:106] calculated static IP "192.168.49.2" for the "minikube" container
I0311 20:04:17.254423   14562 cli_runner.go:133] Run: docker ps -a --format {{.Names}}
I0311 20:04:17.276222   14562 cli_runner.go:133] Run: docker volume create minikube --label name.minikube.sigs.k8s.io=minikube --label created_by.minikube.sigs.k8s.io=true
I0311 20:04:17.297493   14562 oci.go:102] Successfully created a docker volume minikube
I0311 20:04:17.297533   14562 cli_runner.go:133] Run: docker run --rm --name minikube-preload-sidecar --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --entrypoint /usr/bin/test -v minikube:/var registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 -d /var/lib
- W0311 20:04:32.335087   14562 cli_runner.go:180] docker run --rm --name minikube-preload-sidecar --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --entrypoint /usr/bin/test -v minikube:/var registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 -d /var/lib returned with exit code 125
I0311 20:04:32.335107   14562 cli_runner.go:186] Completed: docker run --rm --name minikube-preload-sidecar --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --entrypoint /usr/bin/test -v minikube:/var registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 -d /var/lib: (15.037528308s)
I0311 20:04:32.335149   14562 client.go:171] LocalClient.Create took 15.104858671s
- I0311 20:04:34.335278   14562 ssh_runner.go:195] Run: sh -c "df -h /var | awk 'NR==2{print $5}'"
I0311 20:04:34.335310   14562 cli_runner.go:133] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
W0311 20:04:34.359043   14562 cli_runner.go:180] docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube returned with exit code 1
I0311 20:04:34.359121   14562 retry.go:31] will retry after 199.270641ms: new client: new client: Error creating new ssh host from driver: Error getting ssh port for driver: get ssh host-port: get port 22 for "minikube": docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube: exit status 1
stdout:


stderr:
Error: No such container: minikube
| I0311 20:04:34.558653   14562 cli_runner.go:133] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
/ W0311 20:04:34.582159   14562 cli_runner.go:180] docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube returned with exit code 1
I0311 20:04:34.582237   14562 retry.go:31] will retry after 469.714889ms: new client: new client: Error creating new ssh host from driver: Error getting ssh port for driver: get ssh host-port: get port 22 for "minikube": docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube: exit status 1
stdout:

stderr:
Unable to find image 'registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2' locally
docker: Error response from daemon: Get "https://registry.cn-hangzhou.aliyuncs.com/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.

I0311 20:04:37.151390   14562 out.go:176] 

W0311 20:04:37.151461   14562 out.go:241] ❌  Exiting due to GUEST_PROVISION: Failed to start host: recreate: creating host: create: creating: setting up container node: preparing volume for minikube container: docker run --rm --name minikube-preload-sidecar --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --entrypoint /usr/bin/test -v minikube:/var registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2 -d /var/lib: exit status 125
stdout:

stderr:
Unable to find image 'registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2' locally
docker: Error response from daemon: Get "https://registry.cn-hangzhou.aliyuncs.com/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).

### Operating System

Other

### Driver

Docker

Pull request description:
update AliyunMirror image prefix
<!-- 🎉 Thank you for contributing to minikube! 🎉 Here are some hints to get your PR merged faster:

1. Your PR title will be included in the release notes, choose it carefully
2. If the PR fixes an issue, add "fixes #<issue number>" to the description.
3. If the PR is a user interface change, please include a "before" and "after" example.
4. If the PR is a large design change, please include an enhancement proposal:
https://github.com/kubernetes/minikube/tree/master/enhancements
-->

fix #13768 

The `coredns` image is cached under `.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/coredns/coredns_v1.8.6`.

The right path should be `.minikube/cache/images/amd64/registry.cn-hangzhou.aliyuncs.com/google_containers/coredns_v1.8.6`

Could you kindly review this PR?

Patch:
diff --git a/cmd/minikube/cmd/start_flags.go b/cmd/minikube/cmd/start_flags.go
index 261b1af97..19e256f2a 100644
--- a/cmd/minikube/cmd/start_flags.go
+++ b/cmd/minikube/cmd/start_flags.go
@@ -430,7 +430,7 @@ func getRepository(cmd *cobra.Command, k8sVersion string) string {
 		repository = autoSelectedRepository
 	}
 
-	if repository == "registry.cn-hangzhou.aliyuncs.com/google_containers" {
+	if repository == constants.AliyunMirror {
 		download.SetAliyunMirror()
 	}
 
diff --git a/pkg/addons/addons.go b/pkg/addons/addons.go
index 2b273dd6d..24d0e3ac1 100644
--- a/pkg/addons/addons.go
+++ b/pkg/addons/addons.go
@@ -192,7 +192,7 @@ func EnableOrDisableAddon(cc *config.ClusterConfig, name string, val string) err
 		exit.Error(reason.HostSaveProfile, "Failed to persist images", err)
 	}
 
-	if cc.KubernetesConfig.ImageRepository == "registry.cn-hangzhou.aliyuncs.com/google_containers" {
+	if cc.KubernetesConfig.ImageRepository == constants.AliyunMirror {
 		images, customRegistries = assets.FixAddonImagesAndRegistries(addon, images, customRegistries)
 	}
 
diff --git a/pkg/minikube/bootstrapper/images/images.go b/pkg/minikube/bootstrapper/images/images.go
index 60d2e68d6..3e270918e 100644
--- a/pkg/minikube/bootstrapper/images/images.go
+++ b/pkg/minikube/bootstrapper/images/images.go
@@ -130,6 +130,10 @@ func coreDNS(v semver.Version, mirror string) string {
 		cv = findLatestTagFromRepository(fmt.Sprintf(tagURLTemplate, kubernetesRepo(mirror), imageName), cv)
 	}
 
+	if mirror == constants.AliyunMirror {
+		imageName = "coredns"
+	}
+
 	return fmt.Sprintf("%s:%s", path.Join(kubernetesRepo(mirror), imageName), cv)
 }
 
@@ -161,7 +165,14 @@ func auxiliary(mirror string) []string {
 
 // storageProvisioner returns the minikube storage provisioner image
 func storageProvisioner(mirror string) string {
-	return path.Join(minikubeRepo(mirror), "storage-provisioner:"+version.GetStorageProvisionerVersion())
+	cv := version.GetStorageProvisionerVersion()
+	in := "k8s-minikube/storage-provisioner:" + cv
+	if mirror == "" {
+		mirror = "gcr.io"
+	} else if mirror == constants.AliyunMirror {
+		in = "storage-provisioner:" + cv
+	}
+	return path.Join(mirror, in)
 }
 
 // KindNet returns the image used for kindnet
diff --git a/pkg/minikube/bootstrapper/images/repo.go b/pkg/minikube/bootstrapper/images/repo.go
index d06f0db9a..dbd25d454 100644
--- a/pkg/minikube/bootstrapper/images/repo.go
+++ b/pkg/minikube/bootstrapper/images/repo.go
@@ -16,8 +16,6 @@ limitations under the License.
 
 package images
 
-import "path"
-
 // DefaultKubernetesRepo is the default Kubernetes repository
 const DefaultKubernetesRepo = "k8s.gcr.io"
 
@@ -28,11 +26,3 @@ func kubernetesRepo(mirror string) string {
 	}
 	return DefaultKubernetesRepo
 }
-
-// minikubeRepo returns the official minikube repository, or an alternate
-func minikubeRepo(mirror string) string {
-	if mirror == "" {
-		mirror = "gcr.io"
-	}
-	return path.Join(mirror, "k8s-minikube")
-}
diff --git a/pkg/minikube/constants/constants.go b/pkg/minikube/constants/constants.go
index fcdb38c43..242db0dda 100644
--- a/pkg/minikube/constants/constants.go
+++ b/pkg/minikube/constants/constants.go
@@ -145,6 +145,9 @@ const (
 	MountTypeFlag = "type"
 	// MountUIDFlag is the flag used to set the mount UID
 	MountUIDFlag = "uid"
+
+	// Mirror CN
+	AliyunMirror = "registry.cn-hangzhou.aliyuncs.com/google_containers"
 )
 
 var (
@@ -177,7 +180,7 @@ var (
 	// ImageRepositories contains all known image repositories
 	ImageRepositories = map[string][]string{
 		"global": {""},
-		"cn":     {"registry.cn-hangzhou.aliyuncs.com/google_containers"},
+		"cn":     {AliyunMirror},
 	}
 	// KubernetesReleaseBinaries are Kubernetes release binaries required for
 	// kubeadm (kubelet, kubeadm) and the addon manager (kubectl)
diff --git a/pkg/minikube/image/image.go b/pkg/minikube/image/image.go
index c671b57e8..b66b240ac 100644
--- a/pkg/minikube/image/image.go
+++ b/pkg/minikube/image/image.go
@@ -154,15 +154,12 @@ func retrieveImage(ref name.Reference, imgName string) (v1.Image, string, error)
 		}
 	}
 	if useRemote {
-		ref, canonicalName, err := fixRemoteImageName(ref, imgName)
-		if err != nil {
-			return nil, "", err
-		}
+		cname := canonicalName(ref)
 		img, err = retrieveRemote(ref, defaultPlatform)
 		if err == nil {
 			img, err = fixPlatform(ref, img, defaultPlatform)
 			if err == nil {
-				return img, canonicalName, nil
+				return img, cname, nil
 			}
 		}
 	}
@@ -321,22 +318,3 @@ func normalizeTagName(image string) string {
 	}
 	return base + ":" + tag
 }
-
-func fixRemoteImageName(ref name.Reference, imgName string) (name.Reference, string, error) {
-	const aliyunMirror = "registry.cn-hangzhou.aliyuncs.com/google_containers/"
-	if strings.HasPrefix(imgName, aliyunMirror) {
-		// for aliyun registry must strip namespace from image name, e.g.
-		//   registry.cn-hangzhou.aliyuncs.com/google_containers/coredns/coredns:v1.8.0 will not work
-		//   registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:1.8.0 does work
-		image := strings.TrimPrefix(imgName, aliyunMirror)
-		image = strings.TrimPrefix(image, "k8s-minikube/")
-		image = strings.TrimPrefix(image, "kubernetesui/")
-		image = strings.TrimPrefix(image, "coredns/")
-		remoteRef, err := name.ParseReference(aliyunMirror+image, name.WeakValidation)
-		if err != nil {
-			return nil, "", err
-		}
-		return remoteRef, canonicalName(ref), nil
-	}
-	return ref, canonicalName(ref), nil
-}
diff --git a/pkg/minikube/node/cache.go b/pkg/minikube/node/cache.go
index fbd53889b..7acaee047 100644
--- a/pkg/minikube/node/cache.go
+++ b/pkg/minikube/node/cache.go
@@ -261,7 +261,7 @@ func imagesInConfigFile() ([]string, error) {
 
 func updateKicImageRepo(imgName string, repo string) string {
 	image := strings.TrimPrefix(imgName, "gcr.io/")
-	if repo == "registry.cn-hangzhou.aliyuncs.com/google_containers" {
+	if repo == constants.AliyunMirror {
 		// for aliyun registry must strip namespace from image name, e.g.
 		//   registry.cn-hangzhou.aliyuncs.com/google_containers/k8s-minikube/kicbase:v0.0.25 will not work
 		//   registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.25 does work


Test patch:
diff --git a/pkg/minikube/bootstrapper/images/images_test.go b/pkg/minikube/bootstrapper/images/images_test.go
index 65fac2e26..67078d294 100644
--- a/pkg/minikube/bootstrapper/images/images_test.go
+++ b/pkg/minikube/bootstrapper/images/images_test.go
@@ -127,6 +127,46 @@ func TestGetLatestTag(t *testing.T) {
 	}
 }
 
+func TestEssentialsAliyunMirror(t *testing.T) {
+	var testCases = []struct {
+		version string
+		images  []string
+	}{
+
+		{"v1.21.0", strings.Split(strings.Trim(`
+registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.21.0
+registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.21.0
+registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.21.0
+registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.21.0
+registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.4.1
+registry.cn-hangzhou.aliyuncs.com/google_containers/etcd:3.4.13-0
+registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:v1.8.0
+`, "\n"), "\n")},
+		{"v1.22.0", strings.Split(strings.Trim(`
+registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.22.0
+registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.22.0
+registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.22.0
+registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.22.0
+registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.5
+registry.cn-hangzhou.aliyuncs.com/google_containers/etcd:3.5.0-0
+registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:v1.8.4
+`, "\n"), "\n")},
+	}
+	for _, tc := range testCases {
+		t.Run(tc.version, func(t *testing.T) {
+			v, err := semver.Make(strings.TrimPrefix(tc.version, "v"))
+			if err != nil {
+				t.Fatal(err)
+			}
+			want := tc.images
+			got := essentials("registry.cn-hangzhou.aliyuncs.com/google_containers", v)
+			if diff := cmp.Diff(want, got); diff != "" {
+				t.Errorf("images mismatch (-want +got):\n%s", diff)
+			}
+		})
+	}
+}
+
 func TestAuxiliary(t *testing.T) {
 	want := []string{
 		"gcr.io/k8s-minikube/storage-provisioner:" + version.GetStorageProvisionerVersion(),
@@ -147,6 +187,16 @@ func TestAuxiliaryMirror(t *testing.T) {
 	}
 }
 
+func TestAuxiliaryAliyunMirror(t *testing.T) {
+	want := []string{
+		"registry.cn-hangzhou.aliyuncs.com/google_containers/storage-provisioner:" + version.GetStorageProvisionerVersion(),
+	}
+	got := auxiliary("registry.cn-hangzhou.aliyuncs.com/google_containers")
+	if diff := cmp.Diff(want, got); diff != "" {
+		t.Errorf("images mismatch (-want +got):\n%s", diff)
+	}
+}
+
 func TestCNI(t *testing.T) {
 	// images used by k8s.io/minikube/pkg/minikube/cni
 	var testCases = []struct {
diff --git a/pkg/minikube/bootstrapper/images/repo_test.go b/pkg/minikube/bootstrapper/images/repo_test.go
index e4e2b11aa..5621003dd 100644
--- a/pkg/minikube/bootstrapper/images/repo_test.go
+++ b/pkg/minikube/bootstrapper/images/repo_test.go
@@ -44,27 +44,3 @@ func Test_kubernetesRepo(t *testing.T) {
 	}
 
 }
-
-func Test_minikubeRepo(t *testing.T) {
-	tests := []struct {
-		mirror string
-		want   string
-	}{
-		{
-			"",
-			"gcr.io/k8s-minikube",
-		},
-		{
-			"mirror.k8s.io",
-			"mirror.k8s.io/k8s-minikube",
-		},
-	}
-
-	for _, tc := range tests {
-		got := minikubeRepo(tc.mirror)
-		if !cmp.Equal(got, tc.want) {
-			t.Errorf("mirror miss match, want: %s, got: %s", tc.want, got)
-		}
-	}
-
-}