Memory limit problem

Hello everyone, can someone explain to me, how I can expand limit of 14.53Gb of memory in my Docker.Desktop? I have 32 Gb of DDR5, and I want to use about 20 Gb of RAM, but .wslconfig cant cure this.

Please, share how you tried to set it. Docker Desktop has a link on the Resources tab in the Settings to Microsoft’s documentation about configuring memory limit. There is no other way. Docker uses WSL2 as a backend, but that is one virtual machine with multiple containers called “WSL2 distributions”. Memory limis will be the same for all in the VM. The default setting is 50% of the total memory which is about what you see.

Good day, I’ve created .wslconfig located in C:\Users<my_username>, with this:

[wsl2]
memory=28GB
processors=12
swap=8GB
localhostForwarding=true

It works with processors and swap (I can change my processors and swap, docker desktop will see it), but I can’t get more than 14.53 Gb or RAM for Docker! I can set 2, 5, 7 Gb etc., anything below, but not greater than 14.53 Gb!

изображение

PS: found the issue, it was on the system level, nothing to do with Docker itself. Thanks for your reply!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.