57
u/IntegrityError 2d ago
Docker on Windows = VM
Docker on Linux = Just a slim demon
2
83
u/dreadBiRateBob 2d ago
are you using windows? theres your problem
11
u/Spitfire1900 2d ago
The amount of actual memory used is low though despite Task Manager saying otherwise when you’re using WSL2 and Docker.
The Linux kernel running on the docker-desktop VM is aggressively caching memory, but WSL2’s automatic memory reclaim feature periodically trims that cache and hands it back to Windows on its own schedule (this can be tuned via .wslconfig).
1
u/Everisak 20h ago
Is it actually working now? I know some time ago (when I cared about this) the problem was that vmmem process never returned allocated memory and only way to reclaim it was to kill/restart WSL. Maybe it was WSL1 and WSL2 is handling it correctly?
1
3
1
-2
u/afterburningdarkness 2d ago
Uff cant wait to switch os to do dumb projects no one would ever see.
6
53
u/aksdb 2d ago
Sounds like you are on the wrong operating system then. Docker should be a simple daemon consuming almost nothing on its own. The only thing consuming ressources should be the things you run via docker (which would be consuming almost the same amount of ressources if you ran them outside a container).
8
u/Poison916Kind 2d ago
I was once running php and MySQL on a docker container. My DOCKERFILE was malconfigured trying to access wrong data so it was running with atleast 1000% of CPU resources (10+ cores).after properly configuring the file it went down to 0.5%. and in using windows!
5
u/Desperate-Tomatillo7 2d ago
Bold of you to think that my Chrome will share the memory with Docker.
4
u/HardestDrive 2d ago
Just run podman, screw docker and its daemon. Especially if you're building for enterprise
6
3
u/rolling_atackk 2d ago
Me, using the whole ass ubuntu docker image for my simple Python yellow world project
7
u/DragonSlayerC 2d ago
What? Docker is super lightweight. It consumed practically no resources and the containers use no more than a normal app would.
2
2
2
u/1GoodIdeeaOutOf100 2d ago
My Pi5 runs Docker with pi hole, wireguard, home assistant and glances with 900mb of ram used.
2
u/ColdDelicious1735 2d ago
Errr, yeah docker, umm I am running 10 docker instances, and with the OS and non docker stuff, have not even hit 10gb of ram.
2
u/ThinkPad214 2d ago
What os you using homie?
2
2
u/errepunto 1d ago
For all stuck on windows, podman in wsl consume much mess RAM than Docker Dessktop. With the compatibility package, you can use the "docker" command seamless.
2
2
3
1
u/trinalgalaxy 2d ago
Ive had docker use 100%+ to the point it cant shut itself down after a few days of uptime... docker is kinda a crappy program.
1
1
-8
u/erthyacheck 2d ago
i think human consciousness is a tragic misstep in evolution. we became too self-aware, nature created an aspect of nature separate from itself, we are creatures that should not exist by natural law
10
6

121
u/Top-Employ5163 2d ago