It's still kind of a pig. I have very little running on this portainer instance. It's probably just being efficient with it's disk by loading stuff into memory or something but it uses a lot more than most of the other services I host.
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).
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?
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).
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!
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.
Docker on windows is such pain 😭 I didn't know docker was an issue since I started using it on Linux first but when I tried it on windows it was pain 😔 Well one of major reason to use Linux if ask me 😁 Coding in Linux is much better over all
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
122
u/Top-Employ5163 Aug 30 '26
2
u/ThinkPad214 Aug 30 '26
What os you using homie?
60
u/IntegrityError Aug 30 '26
Docker on Windows = VM
Docker on Linux = Just a slim demon
84
u/dreadBiRateBob Aug 30 '26
are you using windows? theres your problem
54
u/aksdb Aug 30 '26
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 Aug 30 '26
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 Aug 31 '26
Bold of you to think that my Chrome will share the memory with Docker.
8
u/ruiiiij Aug 30 '26
User error. Don't blame it on docker.
4
u/HardestDrive Aug 30 '26
Just run podman, screw docker and its daemon. Especially if you're building for enterprise
7
u/AmIPsycho_ Aug 30 '26
80%? For me it takes almost nothing even in windows.
3
u/rover_G Aug 30 '26
You can limit docker’s resource usage
3
u/rolling_atackk Aug 31 '26
Me, using the whole ass ubuntu docker image for my simple Python yellow world project
6
u/DragonSlayerC Aug 30 '26
What? Docker is super lightweight. It consumed practically no resources and the containers use no more than a normal app would.
2
u/Mihanik1273 Aug 30 '26
Docker doesn't needs anything...
2
u/1GoodIdeeaOutOf100 Aug 30 '26
My Pi5 runs Docker with pi hole, wireguard, home assistant and glances with 900mb of ram used.
2
u/ColdDelicious1735 Aug 30 '26
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/Nero8 Aug 31 '26
If anyone here is on Mac, give orbstack a try. Has been my docker replacement for a bit now
2
u/errepunto Aug 31 '26
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
u/HundeTI Sep 01 '26
Docker on windows is such pain 😭 I didn't know docker was an issue since I started using it on Linux first but when I tried it on windows it was pain 😔 Well one of major reason to use Linux if ask me 😁 Coding in Linux is much better over all
3
u/mbcarbone Aug 30 '26
Docker? I hardly knew her. 🙃 I will let myself out …
1
u/trinalgalaxy Aug 30 '26
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
u/geek-49 Aug 31 '26
Pretty sure I have seen this one before.
1
u/JayTurnr Sep 01 '26
Never had an issue with Docker consuming resources... Are you using it in a VM?
1
u/Soumalyaplayz Sep 02 '26
Too bad. I'm using linux and even with docker, it uses very little resources
-8
u/erthyacheck Aug 30 '26
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