Remix.run Logo
megous 8 hours ago

You can just as well not run docker. 1GiB machine can run a lot of server software, if RAM is not wasted on having duplicate OSes on one machine.

zozbot234 8 hours ago | parent | next [-]

Docker is about containerization/sandboxing, you don't need to duplicate the OS. You can run your app as the init process for the sandbox with nothing else running in the background.

rtpg 8 hours ago | parent | prev | next [-]

I think that on linux docker is not nearly as resource intensive as on Mac. Not sure of the actual (for example) memory pressures due to things like not sharing shared libs between processes, granted

JollySharp0 8 hours ago | parent | prev | next [-]

Containers are not Virtual Machines. 1GB cannot run a lot of server software.

If stuff is written in .NET, Java or JavaScript. Hosting a non-trivial web app can use several hundred megabytes of memory.

gnabgib 6 hours ago | parent [-]

Only Java qualifies under your arbitrary rules, and even then I imagine it's trying to catch up to .NET (after all.. blu-ray players execute Java).. which can run on embedded systems https://nanoframework.net/

JollySharp0 5 hours ago | parent [-]

I listed some popular languages that web applications I happened to run dockerised are using. They are not arbitrary.

If you run normal web applications they often take many hundreds of megabytes if they are built with some popular languages that I happened to list off the top of my head. That is a fact.

Comparing that to cut down frameworks with many limitations meant for embedded devices isn't a valid comparison.

gnabgib 4 hours ago | parent [-]

1GB is plenty for almost every case I've seen, 10-20x the need. Yes if you're running a repeated full OS underneath (hello VMs) then it'll waste more.

I run (regular) .NET (8) in <50mb, Javascript in <50mb, PHP in <50mb. C, Perl, Go in <20mb.

Unless you're talking about disk space.. runtimes take space.

JollySharp0 3 hours ago | parent [-]

> 1GB is plenty for almost every case I've seen, 10-20x the need

Couldn't have seen many then! Maybe you should look elsewhere.

> Yes if you're running a repeated full OS underneath (hello VMs) then it'll waste more.

Docker is not VMs. Other people have stated this.

> I run (regular) .NET (8) in <50mb, Javascript in <50mb, PHP in <50mb. C, Perl, Go in <20mb.

Good for you. I run web services that are heavier. The container has nothing to do with it.

zx8080 6 hours ago | parent | prev | next [-]

It's not OS duplication per se, but a SystemD one.

parl_match 5 hours ago | parent | prev [-]

> You can just as well not run docker.

this is naive

"just as well"? lmao sure i guess i could just manually set up the environment and have differences from what im hoping to use in productio

> 1GiB machine can run a lot of server software,

this is naive

it really depends if you're crapping out some basic web app versus doing something that's actually complicated and has a need for higher performance than synchronous web calls :)

in addition, my mq pays attention to memory pressure and tunes its flow control based on that. so i have a test harness that tests both conditions to ensure that some of my backoff logic works

> if RAM is not wasted on having duplicate OSes on one machine.

this is naive

that's not how docker works...