Make it clear how to change resource on WSL2 backend docker desktop
File: desktop/windows/index.md We have the line
Disk image size: Specify the size of the disk image.
In docker desktop it said
You are using the WSL 2 backend, so resource limits are managed by Windows.
You can configure limits on the memory, CPU, and swap size allocated to WSL 2 in a .wslconfig file.
Now in microsoft wsl docs, there are no where to be found that how I can change the size of disk image ? So how, where can I change these resource ?
In my docker desktop images tab, it said the total size is 2.27GB (why 2.27, I don't know), even after add wslconfig file with memory=4GB # Limits VM memory, that doesn't change
any update on this?
There hasn't been any activity on this issue for a long time.
If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment.
If not, this issue will be closed in 14 days. This helps our maintainers focus on the active issues.
Prevent issues from auto-closing with a /lifecycle frozen comment.
/lifecycle stale
I personally am still interested in this.
Hi @tuan-lm97 Thanks for raising the issue. The docs have been updated to clarify that the Advanced tab, where you can set the disk image size, is only available in Hyper-V mode, not WSL. https://docs.docker.com/desktop/settings/windows/#advanced
Hope this clears up any confusion.
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
/lifecycle locked