Last active
October 19, 2023 14:51
-
-
Save lucagrandicelli/6561ab4c6874d2869a6f6e9f7f50adf2 to your computer and use it in GitHub Desktop.
WSL Memory Cap - Limit CPU/Memory When using Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# turn off all wsl instances such as docker-desktop | |
wsl --shutdownnotepad "$env:USERPROFILE/.wslconfig" | |
[wsl2] | |
memory=3GB # Limits VM memory in WSL 2 up to 3GB | |
processors=4 # Makes the WSL 2 VM use two virtual processors | |
#credits: https://itnext.io/wsl2-tips-limit-cpu-memory-when-using-docker-c022535faf6f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment