adress review comments
parent
b0e58a3688
commit
13d37ff7aa
|
@ -818,14 +818,16 @@ func validateMemorySize(req int, drvName string) {
|
|||
}
|
||||
|
||||
if driver.IsDockerDesktop(drvName) {
|
||||
// in Docker Desktop if you allocate 2 GB the docker info shows: Total Memory: 1.945GiB which becomes 1991 when we calculate the MBs
|
||||
// thats why it is not same number as other drivers which is 2 GB
|
||||
if containerLimit < 1991 {
|
||||
out.T(out.Tip, `Increase Docker for Desktop memory to at least 2.5 GB or more:
|
||||
out.T(out.Tip, `Increase Docker for Desktop memory to at least 2.5GB or more:
|
||||
|
||||
Docker for Desktop > Settings > Resources > Memory
|
||||
|
||||
`)
|
||||
} else if containerLimit < 2997 && sysLimit > 8000 { // for users with more than 8 GB advice 3 GB
|
||||
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 3 GB.
|
||||
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.
|
||||
|
||||
Docker for Desktop > Settings > Resources > Memory
|
||||
|
||||
|
|
|
@ -173,7 +173,7 @@ func NeedsShutdown(name string) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
// FullName will return the human-known and formatted name for the driver
|
||||
// FullName will return the human-known and title formatted name for the driver based on platform
|
||||
func FullName(name string) string {
|
||||
switch name {
|
||||
case oci.Docker:
|
||||
|
@ -181,9 +181,6 @@ func FullName(name string) string {
|
|||
return "Docker for Desktop"
|
||||
}
|
||||
return "Docker Service"
|
||||
|
||||
case oci.Podman:
|
||||
return "Podman Service"
|
||||
default:
|
||||
return strings.Title(name)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue