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
glog.Warningf("Unable to query memory limits: %v", err)
814
816
}
817
+
815
818
ifreq<minUsableMem&&!viper.GetBool(force) {
816
819
exit.WithCodeT(exit.Config, "Requested memory allocation {{.requested}}MB is less than the usable minimum of {{.minimum}}MB",
817
820
out.V{"requested": req, "mininum": minUsableMem})
@@ -820,12 +823,30 @@ func validateMemorySize() {
820
823
out.T(out.Notice, "Requested memory allocation ({{.requested}}MB) is less than the recommended minimum {{.recommended}}MB. Kubernetes may crash unexpectedly.",
// in Docker Desktop if you allocate 2 GB the docker info shows: Total Memory: 1.945GiB which becomes 1991 when we calculate the MBs
829
+
// thats why it is not same number as other drivers which is 2 GB
830
+
ifcontainerLimit<1991 {
831
+
out.T(out.Tip, `Increase Docker for Desktop memory to at least 2.5GB or more:
832
+
833
+
Docker for Desktop > Settings > Resources > Memory
834
+
835
+
`)
836
+
} elseifcontainerLimit<2997&&sysLimit>8000 { // for users with more than 8 GB advice 3 GB
837
+
out.T(out.Tip, `Your system has {{.system_limit}}MB memory but Docker has only {{.container_limit}}MB. For a better performance increase to at least 3GB.
838
+
839
+
Docker for Desktop > Settings > Resources > Memory
exit.UsageT("Requested cpu count {{.requested_cpus}} is less than the minimum allowed of {{.minimum_cpus}}", out.V{"requested_cpus": cpuCount, "minimum_cpus": minimumCPUS})
841
862
}
863
+
864
+
ifdriver.IsKIC((drvName)) {
865
+
si, err:=oci.CachedDaemonInfo(drvName)
866
+
iferr!=nil {
867
+
out.T(out.Confused, "Failed to verify '{{.driver_name}} info' will try again ...", out.V{"driver_name": drvName})
868
+
si, err=oci.DaemonInfo(drvName)
869
+
iferr!=nil {
870
+
exit.UsageT("Ensure your {{.driver_name}} is running and is healthy.", out.V{"driver_name": driver.FullName(drvName)})
871
+
}
872
+
873
+
}
874
+
ifsi.CPUs<2 {
875
+
ifdrvName==oci.Docker {
876
+
out.T(out.Conflict, `Your Docker Desktop has less than 2 CPUs. Increase CPUs for Docker Desktop.
exit.UsageT("Ensure your {{.driver_name}} system has enough CPUs. The minimum allowed is 2 CPUs.", out.V{"driver_name": driver.FullName(viper.GetString("driver"))})
884
+
885
+
}
886
+
}
842
887
}
843
888
844
889
// validateFlags validates the supplied flags against known bad combinations
exit.UsageT("{{.driver_name}} has only {{.container_limit}}MB memory but you specified {{.specified_memory}}MB", out.V{"container_limit": containerLimit, "specified_memory": mem, "driver_name": driver.FullName(drvName)})
237
+
}
235
238
236
239
} else {
237
240
glog.Infof("Using suggested %dMB memory alloc based on sys=%dMB, container=%dMB", mem, sysLimit, containerLimit)
out.T(out.Tip, "Please ensure your system has {{.cpu_counts}} CPU cores.", out.V{"cpu_counts": viper.GetInt(cpus)})
56
57
} else {
57
-
out.T(out.Tip, "Please ensure your {{.driver_name}} system has access to {{.cpu_counts}} CPU cores or reduce the number of the specified CPUs", out.V{"driver_name": viper.GetString("driver"), "cpu_counts": viper.GetInt(cpus)})
58
+
out.T(out.Tip, "Please ensure your {{.driver_name}} system has access to {{.cpu_counts}} CPU cores or reduce the number of the specified CPUs", out.V{"driver_name": driver.FullName(viper.GetString("driver")), "cpu_counts": viper.GetInt(cpus)})
58
59
}
59
60
}
60
61
exit.UsageT("Ensure your {{.driver_name}} system has enough CPUs. The minimum allowed is 2 CPUs.", out.V{"driver_name": viper.GetString("driver")})
0 commit comments