Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stopping Vmmem from using RAM

Tags:

docker

windows

I am using Docker to run some containers on Windows 10, and when I was done I noticed an application named vmmem was using almost all of my ram: ~12GB. According to this it is because of Docker and it said if I closed all docker images and containers it would stop. So I stopped and removed all Docker containers and images by the following batch file:

@echo off
FOR /f "tokens=*" %%i IN ('docker ps -aq') DO docker rm %%i
FOR /f "tokens=*" %%i IN ('docker images --format "{{.ID}}"') DO docker rmi %%i

from: https://gist.github.com/daredude/045910c5a715c02a3d06362830d045b6

so when you type docker container ls -a & docker image ls -a they both show nothing. However in Task Manager I still see vmmem using about 4 GB of RAM. What else can I do to stop this? Thanks.

like image 380
Gabe Avatar asked Oct 02 '20 01:10

Gabe


1 Answers

I found the simplest and easiest way to shut down Vmmem is to go into Windows powershell / cmd and enter: wsl --shutdown. This shuts it down.

like image 155
Gabe Avatar answered Oct 21 '22 09:10

Gabe