News for hackers. Stuff that matters.
Re:Ask HN: Docker vs simple DLLs? by Faaak on Tuesday May 31, 2022 @07:38AM (#31568371)
How to you deal with resource allocation (memory limits, cpu limits, etc.) ? How to give a different IP address to each application ? What if an application fails and starts filling your disk space and thus impacts others ?

Docker, and the tools on top of that, can make these problems easier

Re:Ask HN: Docker vs simple DLLs? by chlorion on Tuesday May 31, 2022 @01:37PM (#31572406)
You can do resource control with cgroups. With systemd based distros you can use "systemd-run" and pass various flags that define the exact limits. Non systemd distros can use libcgroup or use the sysfs cgroup interface directly.

The IP address situation can be handled with the "unshare" and "ip" commands. Unshare allows putting a process in a new namespace and ip allows configuring the interfaces and moving them between namespaces.

Both of these solutions do not require any container runtime which is a big advantage efficiency wise!

I am not saying that using docker for these purposes is bad though, I just wanted to mention some lightweight alternatives in case anyone was interested.

Re:Ask HN: Docker vs simple DLLs? by vytautask on Tuesday May 31, 2022 @07:45AM (#31568422)
Also, the orchestration becomes easier - you can run the same docker container on multitude of different OSes and configurations. In addition to that, you get great isolation.