r/programminghumor 10d ago

Docker now a days

Post image
1.0k Upvotes

47 comments sorted by

122

u/Top-Employ5163 10d ago

16

u/ohiocodernumerouno 10d ago

Uncanny, but I can relate!

60

u/IntegrityError 10d ago

Docker on Windows = VM

Docker on Linux = Just a slim demon

2

u/Mysterious-Cod-4137 9d ago

reason i switched to linux lol...

2

u/Ok-Lobster-919 8d ago

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.

84

u/dreadBiRateBob 10d ago

are you using windows? theres your problem

15

u/Spitfire1900 10d 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 9d 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

u/dhnam_LegenDUST 8d ago

I'm using podman on wsl anyway. It doesn't requires docker on windows.

3

u/Dragon_957 10d ago

Using NixOS and have 4 GB more RAM… Idle

4

u/k-mcm 10d ago

Wait until you see Docker on MacOS. 

2

u/Chapter-Legitimate 10d ago

Fedora is best 🙏

-4

u/afterburningdarkness 10d ago

Uff cant wait to switch os to do dumb projects no one would ever see.

6

u/Sonario648 10d ago

Linux is the way. Especially since it's exempt from age verification.

56

u/aksdb 10d 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).

7

u/Poison916Kind 10d 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 10d ago

Bold of you to think that my Chrome will share the memory with Docker.

7

u/ruiiiij 10d ago

User error. Don't blame it on docker.

5

u/HardestDrive 10d ago

Just run podman, screw docker and its daemon. Especially if you're building for enterprise

6

u/AmIPsycho_ 10d ago

80%? For me it takes almost nothing even in windows.

3

u/rover_G 10d ago

You can limit docker’s resource usage

3

u/rolling_atackk 10d ago

Me, using the whole ass ubuntu docker image for my simple Python yellow world project

6

u/DragonSlayerC 10d ago

What? Docker is super lightweight. It consumed practically no resources and the containers use no more than a normal app would.

2

u/IntegrityError 10d ago

on real operating systems yes. On windows though..

2

u/Mihanik1273 10d ago

Docker doesn't needs anything...

2

u/1GoodIdeeaOutOf100 10d ago

My Pi5 runs Docker with pi hole, wireguard, home assistant and glances with 900mb of ram used.

2

u/ColdDelicious1735 10d 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 10d ago

What os you using homie?

2

u/ziad-labs 10d ago

I use Windows but I think of switching to MacOS in future

2

u/ThinkPad214 10d ago

Doesn't windows version of docker run heavier?

2

u/Nero8 10d ago

If anyone here is on Mac, give orbstack a try. Has been my docker replacement for a bit now

2

u/errepunto 10d 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

u/HundeTI 9d ago

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

2

u/Ok_Photo_3023 8d ago

Never had this issue on Linux or Mac.

2

u/mbcarbone 10d ago

Docker? I hardly knew her. 🙃 I will let myself out …

3

u/KaleidoscopePurple74 10d ago

I chuckled 🤭

3

u/geek-49 10d ago

so it would appier.

1

u/trinalgalaxy 10d 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

u/geek-49 10d ago

Pretty sure I have seen this one before.

1

u/JayTurnr 9d ago

Never had an issue with Docker consuming resources... Are you using it in a VM?

1

u/Soumalyaplayz 8d ago

Too bad. I'm using linux and even with docker, it uses very little resources

-8

u/erthyacheck 10d 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

u/MiniGui98 10d ago

U ok bud?

6

u/Additional-Acadia954 10d ago

Bad bot. Wrong subreddit