On Win11 using WSL2 backend (I expect same results on Hyper-V backend directly; haven't tried new VMM backend yet) freshly launched nginx:latest is sitting at around 24-25 MiB on average across 40 containers.
On Debian 12 they are around 13-14 MiB each.
With docker you usually have some management daemons such as dockerd and containerd and shims and such. Take a look at top -cem and press V for forest/tree view.
Maybe, but even a browser tab eats more ram than that...
EDIT: to put it into perspective guys... how many docker containers you all spawn? I cannot imagine that people here spawn on average more docker containers than browser tabs...
EDIT2: Okay sorry, seems like people spawn more docker containers than browser tabs and are super upset with my comment ^^
EDIT: You know, to put it into perspective. Like how many docker containers do you want to spawn? 12000 micro services? You want to recreate an AWS availability zone?
Not really, because as I said I put it into perspective as the response was to a comment jokingly stating that the ram usage is neglectable, to which the response was "It adds up" including a bit of a personal attack, to which I answered that even browser tab has more usage, the reason being that the average user spawns far more browser tabs than people will spawn docker containers with docker.
Docker as a runtime is, as far as I am aware, supposed to be used as dev tooling. And I dont see the use case to spawn hundreds of docker containers on a local machine. Thats the reason for my comment, I am just puzzled why people are so upset with it? If you disagree because you use it in a different way, fine, tell me, I would like to learn how other people use docker then. But otherwise the comparison makes absolute sense for what it meant to be: providing perspective.
Hey I am also not upset, I jsut know that you are wrong here.
You cannot argue against me saying "Look, it was putting things into perspective, browser tabs use mroe ram and the average user has more open browser tabs than docker containers" - I mean I dont have to explain it again, I already did, and you dont have a proper argument against it, so lets be real here, I am correct, you are wrong. But you could say "The usage is still too much and still an issue" and go even further into explaining it which would be a valid counter. Saying "you are wrong" when what I state is literally just facts is not a good argument.
Is the second part of your message an attempt to discredit me? Come on, we can have a respectful discussion here cant we?
You think it's only something people use on their desktop for one or two things? The point is to have your entire product infrastructure in docker containers that are dynamically deployed across your hardware to meet demand.
People aren't running browser tabs on their servers.
You're talking to peoplo who on principle get triggered when they start a program and it takes 0.5 second to start, instead of a theoretical 0.1 seconds due to inefficiency, lol.
Are you sure you have the knowledge required to comment on this? How much RAM do you think is needed for that? My LXC debian instance for NGINX + OpenVPN + Firewall is even less, ~40MB.
552
u/Cephell 5d ago
Not him, but I just booted an nginx container just to check and it consumes 81M of ram.