4

Windows 10 Docker Desktop Vmmem 占用太多内存解决办法

 2 years ago
source link: https://hellodk.cn/post/819
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Windows 10 Docker Desktop Vmmem 占用太多内存解决办法

解决办法就是使用 wls2 配置文件限制内存上限。

新建文件 C:\Users\xxx\.wslconfigxxx 是你的用户名文件夹的名称,填上以下内容

[wsl2]
memory=2GB
swap=0
localhostForwarding=true

看电脑内存大小酌量设置。例如我只分配了 wsl2 能够使用的宿主机内存上限为 2GB。保存后重启 docker desktop。

20211009135010

https://blog.n0ts.cn/1155.html

文章目录

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK