Post by @ajn142@infosec.exchange

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
lambdageek
@lambdageek @mastodon.social
Public en edited

@mcc this is the implementation github.com/containers/podman-c

When I've tried to use it, it had some rough edges around restarting containers, although maybe I was using it wrong

lambdageek
@lambdageek @mastodon.social

@mcc my takeaway was to just use docker-compose with podman

lambdageek
@lambdageek @mastodon.social
Public en edited

@mcc at that point I felt like I learned enough and got distracted from whatever toy project I was doing

mcc
@mcc @mastodon.social

@lambdageek Thanks. Can you clarify one thing?

I am trying to figure out the compose *format*. The way I specify containers. Are "docker-compose" and "podman-compose" *file formats* or *programs*? The link you gave links "Compose Spec" compose-spec.io/ (alarming page), which claims Docker supports it. Are podman's compose format and docker's compose format implementations of this spec? *Variants* of that spec?

Replying to @mcc@mastodon.social
lambdageek
@lambdageek @mastodon.social
Public en edited

@mcc docker-compose and podman-compose are programs that read the same file format.

the file format is the same*

*At the naive level I was using it

0xC0DEC0DE07EA
@c0dec0dec0de @hachyderm.io

@lambdageek @mcc caveat bears significant weight. If you’re doing services and expect them to work without a logged-in user and come back reliably, then I don’t think Podman and Compose work for that. I think you’re supposed to do something called Quadlets which are like Podman containers or pods managed by systemd—I’ve never made it work and haven’t had the time/energy to forge ahead with it until I figured out what I was doing wrong.

Buttered Jorts
@ajn142 @infosec.exchange

@c0dec0dec0de @lambdageek @mcc not sure what that gets you that docker compose restart policies don't?

baeldung.com/ops/docker-compos

0xC0DEC0DE07EA
@c0dec0dec0de @hachyderm.io

@ajn142 @lambdageek @mcc my experience is that compose restart policies don’t work reliably with Podman, but that may be fixed in newer release than I used last year or so (on RHEL8)

Buttered Jorts
@ajn142 @infosec.exchange
Public en edited

@c0dec0dec0de @lambdageek @mcc ahh gotcha. I'm still using docker, have considered podman but that'll probably be a project for some future lab rebuild, take $X things working via docker, reimplement in podman.

I misinterpreted the statement "podman and compose don't work for that" as meaning podman and docker compose.

0xC0DEC0DE07EA
@c0dec0dec0de @hachyderm.io

@ajn142 @lambdageek @mcc oh, and all of my difficulties are with rootless Podman. I’ve no idea how rootful Podman holds up and that could very well be a different story.

Buttered Jorts
@ajn142 @infosec.exchange

@c0dec0dec0de @lambdageek @mcc

whyyyyyyyyyyyyyyy

Taggart :ifin: @mttaggart@infosec.exchange

Well Docker went and made the inevitable pivot to AI. Somehow now their language is denigrating containers, but don't worry: they'll secure your agents.

(Spare me the "Docker sux" takes please. It's a common tool used a lot of places; I don't really care whether you like the company)

docker.com/blog/meet-the-new-d

lambdageek
@lambdageek @mastodon.social

@ajn142 @c0dec0dec0de @mcc "good news! we took the 'Docker is not a security boundary' meme seriously and made our own hypervisor and kernel" docker.com/products/docker-san

(that's not a _bad_ idea, but tying it to AI is a choice)

mcc
@mcc @mastodon.social

@lambdageek @ajn142 @c0dec0dec0de *reads the first paragraph of post* well, that's actually a good idea!

*reads second paragraph of post* THAT'S IT. I'M GOING BACK TO MICROKERNELS

Replying to @mcc@mastodon.social
mcc
@mcc @mastodon.social
Public en edited
0xC0DEC0DE07EA
@c0dec0dec0de @hachyderm.io

@ajn142 @lambdageek @mcc Podman/Buildah also don’t like HEREDOCs in Containerfiles where Docker/BuildKit are fine with them.