docs icon indicating copy to clipboard operation
docs copied to clipboard

Make it clear how to change resource on WSL2 backend docker desktop

Open tuan-lm97 opened this issue 3 years ago • 1 comments

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

tuan-lm97 avatar Apr 07 '22 18:04 tuan-lm97

any update on this?

drazen-relias avatar Sep 08 '22 15:09 drazen-relias

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

docker-robott avatar Jan 03 '23 01:01 docker-robott

I personally am still interested in this.

cjbarth avatar Jan 03 '23 16:01 cjbarth

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.

aevesdocker avatar Jan 09 '23 12:01 aevesdocker

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

docker-robott avatar Feb 08 '23 03:02 docker-robott