Post by @mcc@mastodon.social
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)
@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.
@mcc we were deploying to kubernetes. Totally dissimilar to what you’re looking to do. What got me was not being able to repeatably rebuild the image (we would bake in our app, but needed the base image to start from). If you based your host on alpine, you could just plan on not being able to rebuild it without much futzing.
@edebill not being able to rebuild without futzing is scary because isn't a rebuild a prerequisite for incorporating security updates?