How to Limit Memory and Resources in Docker Desktop on Windows
I'm working with Docker Desktop on Windows as part of my daily routine, primarily for database engines such as PostgreSQL and Oracle. Since I use my computer intensively, with numerous browser tabs open and running multiple instances of Visual Studio 2022 and SQL Server, I needed to limit the resources of my computer. To limit the RAM, CPU, and other resources in Windows, it's necessary to create a file named .wslconfig in your home directory. [wsl2] memory = 4GB # Limits VM memory in WSL 2 Documentation https://learn.microsoft.com/en-us/windows/wsl/wsl-config Before Setting After Setting -- Atte. Victor Hugo Saavedra http://vhspiceros.blogspot.com