r/programminghumor 2d ago

Docker now a days

Post image
881 Upvotes

46 comments sorted by

121

u/Top-Employ5163 2d ago

17

u/ohiocodernumerouno 2d ago

Uncanny, but I can relate!

57

u/IntegrityError 2d ago

Docker on Windows = VM

Docker on Linux = Just a slim demon

2

u/Mysterious-Cod-4137 1d ago

reason i switched to linux lol...

1

u/Ok-Lobster-919 7m 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.

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

u/dhnam_LegenDUST 14h ago

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

3

u/Dragon_957 2d ago

Using NixOS and have 4 GB more RAM… Idle

3

u/k-mcm 2d ago

Wait until you see Docker on MacOS. 

1

u/Chapter-Legitimate 2d ago

Fedora is best 🙏

-2

u/afterburningdarkness 2d ago

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

6

u/Sonario648 2d ago

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

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.

8

u/ruiiiij 2d ago

User error. Don't blame it on docker.

4

u/HardestDrive 2d ago

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

6

u/AmIPsycho_ 2d ago

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

3

u/rover_G 2d ago

You can limit docker’s resource usage

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

u/IntegrityError 2d ago

on real operating systems yes. On windows though..

2

u/Mihanik1273 2d ago

Docker doesn't needs anything...

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

u/ziad-labs 1d ago

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

2

u/ThinkPad214 1d ago

Doesn't windows version of docker run heavier?

2

u/Nero8 1d ago

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

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

u/Relevant_One9920 1d ago

it was always like that, but it's not docker specific problem.

2

u/HundeTI 1d 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 12h ago

Never had this issue on Linux or Mac.

3

u/mbcarbone 2d ago

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

3

u/KaleidoscopePurple74 2d ago

I chuckled 🤭

3

u/geek-49 2d ago

so it would appier.

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

u/geek-49 2d ago

Pretty sure I have seen this one before.

1

u/JayTurnr 20h ago

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

1

u/Soumalyaplayz 2h ago

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

-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

u/MiniGui98 2d ago

U ok bud?

6

u/Additional-Acadia954 2d ago

Bad bot. Wrong subreddit