Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tuan-lm97 opened this issue Apr 7, 2022 · 5 comments
Closed

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

tuan-lm97 opened this issue Apr 7, 2022 · 5 comments
Labels
area/desktop Issue affects a desktop edition of Docker. E.g docker for mac lifecycle/locked lifecycle/stale

Comments

@tuan-lm97
Copy link

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

@aevesdocker aevesdocker added the area/desktop Issue affects a desktop edition of Docker. E.g docker for mac label Apr 13, 2022
@drazen-relias
Copy link

any update on this?

@docker-robott
Copy link
Collaborator

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

@cjbarth
Copy link

cjbarth commented Jan 3, 2023

I personally am still interested in this.

@aevesdocker
Copy link
Contributor

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.

@docker-robott
Copy link
Collaborator

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 docker locked and limited conversation to collaborators Feb 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/desktop Issue affects a desktop edition of Docker. E.g docker for mac lifecycle/locked lifecycle/stale
Projects
None yet
Development

No branches or pull requests

5 participants