Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

WSL2 .wslconfig Windows

# turn off all wsl instances such as docker-desktop
wsl --shutdown
notepad "$env:USERPROFILE/.wslconfig"

# .wslconfig
[wsl2]
memory=3GB   # Limits VM memory in WSL 2 up to 3GB
processors=4 # Makes the WSL 2 VM use two virtual processors
Source by itnext.io #
 
PREVIOUS NEXT
Tagged: #Windows
ADD COMMENT
Topic
Name
3+1 =