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: pkg/minikube/node/cache.go
+36-3
Original file line number
Diff line number
Diff line change
@@ -133,12 +133,13 @@ func beginDownloadKicBaseImage(g *errgroup.Group, cc *config.ClusterConfig, down
133
133
iffinalImg!="" {
134
134
cc.KicBaseImage=finalImg
135
135
ifimage.Tag(finalImg) !=image.Tag(baseImg) {
136
-
out.WarningT(fmt.Sprintf("minikube was unable to download %s, but successfully downloaded %s as a fallback image", image.Tag(baseImg), image.Tag(finalImg)))
136
+
out.WarningT(fmt.Sprintf("minikube was unable to download %s, but successfully downloaded %s as a fallback image", image.Tag(baseImg), finalImg))
137
137
}
138
138
}
139
139
}()
140
+
// first we try to download the kicbase image (and fall back images) from docker registry
klog.Infof("%s exists in daemon, skipping load", img)
@@ -167,7 +168,39 @@ func beginDownloadKicBaseImage(g *errgroup.Group, cc *config.ClusterConfig, down
167
168
}
168
169
klog.Infof("failed to download %s, will try fallback image if available: %v", img, err)
169
170
}
170
-
returnfmt.Errorf("failed to download kic base image or any fallback image")
171
+
// second if we failed to download any fallback image
172
+
// that means probably all registries are blocked by network issues
173
+
// we can try to download the image from minikube release page
174
+
175
+
// if we reach here, that means the user cannot have access to any docker registry
176
+
// this means the user is very likely to have a network issue
177
+
// downloading from github via http is the last resort, and we should remind the user
178
+
// that he should at least get access to github
179
+
// print essential warnings
180
+
out.WarningT("minikube cannot pull kicbase image from any docker registry, and is trying to download kicbase tarball from github release page via HTTP.")
181
+
out.WarningT("It's very likely that you have an internet issue. Please ensure that you can access the internet at least via HTTP, directly or with proxy. Currently your proxy configure is:")
0 commit comments