So I got today a pretty aggressive sell for moving all my online services to Docker [or podman, whatever, IDK]. Which is something I was already considering for security reasons, but it was argued to me some of the advantages of nix/guix I was interested in (clear separation of content, configuration, and software on my server, easy redeployment) I could get with just Docker.
Okay. Actually this all made sense. But now I have a question.
Why the fuck do I need Linux if I have docker? (1/3)
Put a different way, I've got a couple VPSes. I've got services/sites running on each one. Each is hard nailed to the VPS it's running on. In the docker/podman world I guess I'd have a container for each of my sites (hopefully I don't need an nginx for each site), and a container for mysql or something, and a container for the two non-apache app servers I run. That's… everything I do on the VPS, except log in and fuck around with vim. Could vim, and man, and gcc, be a container? (2/3)
And then what is the Linux distribution itself providing? I just need it to launch and supply kernel+systemd, right? (My VPSes are VERY low disk, low RAM— so I'd worry about all these docker images increasing that.) Wouldn't it make sense to use a distribution that does NOTHING else? Like… uh… examples Kagi gives are "CoreOS" and and something discontinued, and maybe Alpine, though I thought Alpine was about Musl. Assume I actively distrust Redhat. What's the *smallest* podman-host Linux? (3/3)
Other, weirder questions:
- I keep hearing people complain about docker "only being able to inherit from one other" container specification. I was told tonight docker-compose.yaml comprises a "container" which can compose a number of "images" (make fun of me for not knowing these basic things if you wish; I learned Linux in 1998, and nothing changes that). What is the single-inheritance rule, if it's real, concerning? The container? Image specifications? Is podman different in this sense? (4/3)
- What the fuck is Oracle https://docs.oracle.com/en/operating-systems/oracle-linux/podman/containers.html#containers trying to say in this screenshot?
- What does podman use instead of a docker-compose file? Does it just use docker-compose? This doc https://docs.podman.io/en/latest/markdown/podman-compose.1.html says it has the option of using "podman-compose". If I Kagi for that, I get… that same link, the podman-compose manpage (the dash being only a manpage convention).
MUST I write YAML files? Terrifying. I need structural editors for LISP and YAML so I don't have to touch them directly (5/3)
@mcc I’m not a security person but I’ve seen a lot of people who will use “Docker as a security layer” as meme text over something going horribly wrong.
@jason Would you say that docker/podman as a security layer is better than *no* security layer?
Is there a different security layer which is superior for isolation between Linux services?
@mcc we used to use Alpine as a base for docker images. I ended up hating it because they removed slightly older packages, so our Dockerfiles would no longer work. This was not a security thing. They just seemed to have a policy of removing the old one from the repo when a new one came along.
@noisytoot I mean I *think* I want systemd, but the docker advocate I was talking to tonight seemed to be trying to convince me docker *replaces* systemd? I no longer configure, start or stop systemd services, just docker images with services inside them? Is that false?
I'm torn because systemd is known to incorporate AI slop, but I would go to considerable lengths to avoid interacting with openrc
@mcc you probably don't trust Apple either, but our containerization thing has its own minimal init that runs in the base linux vm and sets things up for the OCI image to be able to start https://github.com/apple/containerization/tree/main/vminitd
@joe *rubbing eyes* this is *Linux* containerization?
Does it work on Apple Silicon? Does it require Apple Silicon?
I have two problems I'm trying to solve. A short term problem is that my VPSes are falling apart and I need some sort of plan that allows me to back them up and migrate them non-awkwardly. A long term problem is I want to move off dependence from actors (IBM, Apple) I have reason to believe are using "AI code assistants".
@mcc If it helps at all, "all" valid json is valid yaml, so you can just json it if you speak json.
("all" except for some gross bugs in the spec)
@nonnihil One solution would be to configure an editor to syntax-check a file for json, and then edit my .yaml files in that mode
@mcc The thing that gets me is... you don't.
Service instances don't need 'linux', they need a rigorously pruned system that effectively cuts the whole system down to a core microkernel that only supports what the service needs and precisely nothing else.
It's the human experimenting with new ideas that needs the flexibility and extended software ecosystem that makes up linux. And somehow the Linux kernel and the most important project in the linux userspace have stopped believing that.
@mhoye Well, I need a distribution. I'm not making my own distribution, and if I am it's going to be a distribution of Redox or something greenfield. Do you hvae have a suggestion for a "rigorously pruned system", or are you bemoaning that none currently exists you find adequate?
@mcc I've been hearing interesting things about IncusOS, but sadly haven't had time to sit down with it... maybe over the holiday...
@mcc this is the implementation https://github.com/containers/podman-compose
When I've tried to use it, it had some with edges around restarting containers, although maybe I was using it wrong
@mcc yeah, this is so you can run a Docker-style container inside of a VM on macos. while the host side of things is obviously gonna be mac and apple silicon specific, i don't think the init implementation itself needs to do much that's nonportable. apple stuff is not going to get you away from AI nonsense alas, but i thought it was interesting as an example of how minimal the glue between kernel and OCI can potentially be
@joe That *is* interesting. To be clear, is it possible to run this *WITHOUT* MacOS? Is OpenDarwin still a going concern?