Post by @mcc@mastodon.social

mcc
@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)

Replying to @mcc@mastodon.social
mcc
@mcc @mastodon.social

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)

Replying to @mcc@mastodon.social
mcc
@mcc @mastodon.social

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)

Replying to @mcc@mastodon.social
mcc
@mcc @mastodon.social

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)

Replying to @mcc@mastodon.social
mcc
@mcc @mastodon.social

- What the fuck is Oracle docs.oracle.com/en/operating-s trying to say in this screenshot?

- What does podman use instead of a docker-compose file? Does it just use docker-compose? This doc docs.podman.io/en/latest/markd 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)

Replying to @mcc@mastodon.social

@mcc@mastodon.social Podman, last I checked, doesn't suppor docker-compose, which is why I don't personally use it despite some real technical advantages. They used to support a docker-compose-like implementation, but it's now unsupported as they're working on some new swoopy thing called ... Quadlets I think?

FWIW you can lint your YAML with yamllint: https://github.com/adrienverge/yamllint

Also, I suspect you know this by now but you need Linux for Docker because Docker is a specific Linux thing as it rests upon a Linux kernel feature (cgroups).

docker compose is my favorite way to configure and deploy self hosted apps. There are a number of grizzled sysadmins who will spew fire and brimstone at you if you mention docker. We're all supposed to suffer with using distro packages for everything. Great in principle, a nightmare in practice :(

Replying to @feoh
mcc
@mcc @mastodon.social

@feoh Above I link the manpage for the "podman compose" command; it says "The default compose providers are docker-compose and podman-compose". Something may have changed. I have no information on whether quadlets are different.

Replying to @mcc@mastodon.social

@mcc@mastodon.social Maybe! Good luck with your explorations!

What I remember is that podman compose exists but that there wasn't actually enough of docker compose implemented to allow me to actually use "off the shelf" docker compose files or snippets to manage my deployable software.

Hope it's different now, please do post if you have good luck!