News for hackers. Stuff that matters.
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by pydry on Friday November 03, 2023 @04:50PM (#38134829)
I wish they'd give podman compose just a little bit of love. It's been in a perpetual alpha state for a few years now. E.g.

https://github.com/containers/podman-compose/issues/626

https://github.com/containers/podman-compose/issues/489

The PRs are being neglected too e.g.:

https://github.com/containers/podman-compose/pull/521

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by janejeon on Friday November 03, 2023 @05:34PM (#38135287)
We've been using podman compose for semi-production purposes at our company and that's been our experience as well. It's just... it's really rough, there are a ton of "known" issues, and it's rather unreliable. As a result, I've been really trying to push the "just use the docker daemon in prod instead" (to no avail... yet).
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by dboreham on Friday November 03, 2023 @06:01PM (#38135586)
> "just use the docker daemon in prod instead"

Can you expand on what that means?

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by drzaiusx11 on Friday November 03, 2023 @11:12PM (#38137805)
Not op, but the suggestion is likely to use Podman Desktop during local container development. Then switch to the docker runtime in production systems (ec2 etc.)

Podman and Docker Engine are both OCI runtimes. The theory being that containers reproducablly run across different runtimes without changes in behavior.

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by ftmch on Saturday November 04, 2023 @02:09AM (#38138612)
Switching to Docker in production would probably reveal some edge cases, if not outright incompatibilities, at some point.
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by Rapzid on Friday November 03, 2023 @05:25PM (#38135197)
I was under the impression they were sidelining compose in favor of their k8s manifest flavor which.. Well, let's just say I've never been in a compose file and thought "Man, I wish I was writing k8s manifest syntax".
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by dboreham on Friday November 03, 2023 @06:02PM (#38135598)
You can write a tool that translates between compose format and k8s-babble on-the-fly.

When I say you, I mean me. That's my current project.

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by tuananh on Friday November 03, 2023 @06:09PM (#38135682)
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by MuffinFlavored on Friday November 03, 2023 @04:52PM (#38134848)
Why not write a Helm chart and deploy it locally with Helm or ArgoCD?
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by chucky_z on Friday November 03, 2023 @05:04PM (#38134994)
You're being downvoted. I disagree with that vote, as I cannot tell if this is serious or sarcasm and that makes it an excellent comment.
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by dvfjsdhgfv on Friday November 03, 2023 @05:11PM (#38135060)
Well, once you imagine doing this, you'll quickly realize it is actually sarcasm.
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by mbreese on Friday November 03, 2023 @05:45PM (#38135402)
I don’t know… I used to routinely install HPC batch schedulers on my laptops, so I could see someone legitimately doing this (unironically too).
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by pydry on Friday November 03, 2023 @05:22PM (#38135166)
I'm too busy creating Bazel buildfiles for enterprise fizzbuzz deploying it with kubernetes.
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by Volundr on Friday November 03, 2023 @05:03PM (#38134984)
Out of curiosity, why do you not want to use the real docker compose with podman, now that it's supported?
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by pydry on Friday November 03, 2023 @05:08PM (#38135033)
Half of the point of podman was to avoid the need to run things with root.

Docker compose expects me to have a server running. While I technically could run "podman system service" and configure docker compose to point at a non-standard socket or port in order to run it I would really prefer not to have that kind of headache just to run a script.

Docker compose was also written by docker and exhibits similar levels of shoddiness to docker. The accumulation of bad design decisions by docker is, indeed, why podman exists in the first place. With a little bit of love podman compose could easily surpass docker compose.

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by timost on Friday November 03, 2023 @06:27PM (#38135872)
I agree with you on the state of podman compose.

I just wanted to clarify that you can run docker-compose with podman in _rootless_ mode. This can be done by running podman's systemd user service.

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by pydry on Friday November 03, 2023 @07:21PM (#38136357)
FWIW I actually tend to run podman compose inside a podman container. This is so I can containerize the integration tests which orchestrate the app. It's a useful pattern - one I think should be a lot more widely used for several reasons. The systemd service wouldn't work in this context.

I could maybe use some entrypoint magic to run a server when the container starts just so I can use docker compose but still...eww.

Running a podman systemd service might suffice if it was something that could be installed with a snap of two fingers on every environment but if it means fscking around with service files it's definitely not something I'd want to add to a "set up a development environment" README.

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by timost on Sunday November 05, 2023 @08:33AM (#38150982)
I see, interesting. I guess you are saying that systemd service wouldn't work because it's not available inside the container.

FWIW it's possible to run a rootless podman container with a working systemd inside the container. I've near tried running podman in podman using systemd though.

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by arcanemachiner on Saturday November 04, 2023 @03:05AM (#38138792)
Is it? I think Podman only works with "docker-compose" (the Python-based tool that can be installed separately from Docker, which Podman is compatible with, which is now deprecated) as opposed to "docker compose" (the Golang-based plugin which is integrated into Docker Engine, which I think Podman is not (yet?) compatible with).

Would love to be proven wrong, as I ended up down quite a rabbit hole with this topic somewhat recently.

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by sigotirandolas on Saturday November 04, 2023 @08:14AM (#38140328)
The Golang version, aka. Compose v2 can also be used standalone (they even have prebuilt binaries in their GitHub repository) and is compatible with Podman. Behind the scenes both Compose v1 and v2 use the Docker API which is also implemented by Podman (`podman system service`).

In my experience they work fine together most of the time, I have ran into compatibility bugs sometimes, though things seem to be steadily improving.

Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by arcanemachiner on Saturday November 04, 2023 @11:43AM (#38142073)
Well that's good to know. I ended up going back to Docker containers, but hopefully this means I can take another look at Podman again!
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by sodality2 on Friday November 03, 2023 @09:43PM (#38137260)
I use podman compose in my SaaS to automate and make deployment easier for docker containers, it works great in my simple docker compose (image, name, port expose, volume. that’s it). I suppose use case matters, and mine is very simple, but i’ll just toss one more N=1 in the ring.
Re:Podman Desktop v1.5 with Compose onboarding and enhanced ... by mogwire on Saturday November 04, 2023 @10:46AM (#38141483)
I think this is on purpose. Podman is suppose to be a stepping stone to OpenShift. They don’t want people using it for anything other than development.

How many workloads that are currently on OpenShift could sit on a RHEL server behind a load balancer and work just as well?

I would wager that the average OpenShift cluster is under 10 nodes, runs COTS software, and a bunch of security and logging apps like Dynatrace and just sits there primarily under utilizes because the COTS vendor is a RH partner and stopped shipping RPMs and said we only support OpenShift moving forward.