DEV Community

Discussion on: Do you use Docker?

Collapse
 
averyfreeman profile image
Avery Freeman

I like docker, but I had been using podman because it's daemonless and can run containers as a user other than uid=0 - so it's a little lighter weight, and if a container's running under a user account (other than root), if someone WERE to compromise the container, they wouldn't automatically have root access.

I recently switched to systemd-container for hosting, though, because it's even more simple, and cut my memory usage for a NextJS app in half. Plus, it will run whatever OS structure is in a directory, so you can just extract cloud image tar (alpine, arch, etc.) under /var/lib/machines, stick your app wherever you want it in there, and access it like any other files on the system. It makes editing the files inside the container a lot more convenient, if you need to.

It's got a LOT more capabilities, but I wrote a whole long thing about the simplest way to do it here, if anybody's interested: serverfault.com/questions/957761/p...