You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: cmd/minikube/cmd/start.go
+47-48
Original file line number
Diff line number
Diff line change
@@ -133,7 +133,7 @@ func init() {
133
133
startCmd.Flags().String(serviceCIDR, pkgutil.DefaultServiceCIDR, "The CIDR to be used for service cluster IPs.")
134
134
startCmd.Flags().StringSliceVar(&insecureRegistry, "insecure-registry", nil, "Insecure Docker registries to pass to the Docker daemon. The default service CIDR range will automatically be added.")
135
135
startCmd.Flags().StringSliceVar(®istryMirror, "registry-mirror", nil, "Registry mirrors to pass to the Docker daemon")
136
-
startCmd.Flags().String(imageRepository, "", "Alternative image repository to pull docker images from. This can be used when you have limited access to gcr.io. For Chinese mainland users, you may use local gcr.io mirrors such as registry.cn-hangzhou.aliyuncs.com/google_containers")
136
+
startCmd.Flags().String(imageRepository, "", "Alternative image repository to pull docker images from. This can be used when you have limited access to gcr.io. Set it to \"auto\" to let minikube decide one for you. For Chinese mainland users, you may use local gcr.io mirrors such as registry.cn-hangzhou.aliyuncs.com/google_containers")
137
137
startCmd.Flags().String(imageMirrorCountry, "", "Country code of the image mirror to be used. Leave empty to use the global one. For Chinese mainland users, set it to cn")
138
138
startCmd.Flags().String(containerRuntime, "docker", "The container runtime to be used (docker, crio, containerd)")
139
139
startCmd.Flags().String(criSocket, "", "The cri socket path to be used")
exit.WithError("Failed to check main repository and mirrors for images for images", err)
189
-
}
190
-
191
-
if!found {
192
-
ifrepository=="" {
193
-
exit.WithCode(exit.Failure, "None of known repositories is accessible. Consider specifying an alternative image repository with --image-repository flag")
194
-
} else {
195
-
console.Warning("None of known repositories in your location is accessible. Use %s as fallback.", repository)
exit.WithError("Failed to check main repository and mirrors for images for images", err)
402
+
}
403
+
404
+
if!found {
405
+
ifautoSelectedRepository=="" {
406
+
exit.WithCode(exit.Failure, "None of known repositories is accessible. Consider specifying an alternative image repository with --image-repository flag")
407
+
} else {
408
+
console.Warning("None of known repositories in your location is accessible. Use %s as fallback.", autoSelectedRepository)
0 commit comments