[Personal memo] A small story about CPUs settings of Docker Desktop for Windows

I referred to this. Docker Desktop WSL 2 Backend — Docker-docs-ja 19.03 ... Try Docker environment on Windows-Qiita Docker Desktop for Windows (reference translation) --Qiita

My environment is as follows. Microsoft Windows [Version 10.0.19041.508] Windows 10 Pro version 2004 64bit Intel Core i5-3340M 2.70GHz RAM 16GB Fujitsu LIFEBOOK P772/G

Information before VScode Version: 1.49.1 (user setup)

Windows Subsystem for Linux Release Notes The above site says, "Adjust the default memory allocation for the WSL2 VM to be 50% or 8 GB of host memory, whichever is less," so that may have helped. .. Previously, when I enabled Remote Development, an extension of VS Code, with WSL2 enabled, there was a phenomenon that the CPU usage remained close to 100%. At that time, when I tried to reduce the CPU allocation rate of WSL2, I noticed that the item of CPUs was not found in the Resources tab. Therefore, I would like to keep it as a memorandum.

Conclusion

It seems to be whether or not to check "Use the WSL 2 based engine" on the General tab. WSL2 seems to allocate resources dynamically, so I think that there is no need to configure it.

screenshot

When "Use the WSL 2 based engine" is checked

If "Use the WSL 2 based engine" is not checked

Recommended Posts

[Personal memo] A small story about CPUs settings of Docker Desktop for Windows
[Personal memo] About button (GUI) operation of Docker Desktop for Windows
A story about speeding up unittest on Docker for Mac
Introducing Docker Desktop for Windows on WSL2
Run Redmine in the local environment of Windows10 Pro-Use Docker Desktop for Windows
How to start with Hyper-V instead of WSL2 on Docker Desktop for Windows
Docker Desktop for Windows 2.4.0.0 (48506) Startup error after update
[Personal memo] I learned a little about modifiers
A story about Java 11 support for Web services
Operate Docker Desktop for Windows on Linux (WSL)
A memo when building a Rails 5.2 development environment using Docker Desktop + WSL2 on Windows 10 Home
I made a Docker image of SDAPS for Japanese
Output a list of cron settings for all users.
I tried using Docker Desktop for Windows on Windows 10 Home
A story about starting a Java-related book club for newcomers
List of MySQL sentences for programming beginners * Personal memo
A story about making catkin_make of rosjava compatible offline
A story about misunderstanding how to use java scanner (memo)
The story of fighting ubuntu errors 0x80370114, 0x80000000 to enable docker desktop with wsl2 on windows10 home