Minikube error message: Exiting due to MK_USAGE: Docker Desktop has only 7807MB memory but you specified 8192MB

C:\Users\XXXXX\OneDrive\Documents\real-time-fraud-detection>minikube start --cpus=4 --memory=8192 --driver=docker
:grinning_face_with_smiling_eyes: minikube v1.36.0 on Microsoft Windows 11 Home Single Language 10.0.26100.4351 Build 26100.4351
:sparkles: Using the docker driver based on user configuration

:cross_mark: Exiting due to MK_USAGE: Docker Desktop has only 7807MB memory but you specified 8192MB

How do i get rid of this error ?

The error message indicates that --memory=8192 isn’t available in Docker Desktop, which only has 7807MB.

Either you need to assign more memory to WSL2 , or reduce the memory you request for minikube.

You can configure WSL2 memory either using the WSL Settings (recommended) program, or modify the .wslconfig in your user profile directory.

This is an example to configure ~10GB ram for WSL2:

[wsl2]
memory=10737418240

You do know that Docker Desktop already comes with built-in Kubernetes? You can enable it in the settings.