News for hackers. Stuff that matters.
Re:Red Hat to contribute container tech (Podman, bootc, Comp... by NewJazz on Thursday November 14, 2024 @01:42PM (#42139600)
Does podman support docker compose files well? Devs love them for local environments.
Re:Red Hat to contribute container tech (Podman, bootc, Comp... by madspindel on Thursday November 14, 2024 @02:25PM (#42140109)
Try podman kube generate and podman kube play. Podman can generate a Kubernetes YAML, and then you can run it with kube play.

I use it together with systemd in my home lab. It's Kubernetes for single node and without the bloat. I love it!

https://www.redhat.com/en/blog/kubernetes-workloads-podman-s...

Re:Red Hat to contribute container tech (Podman, bootc, Comp... by bjoli on Thursday November 14, 2024 @05:12PM (#42141766)
Being able to play around with kube files and then just shove them into a my-seevice.kube and execute them via systemd is really neat. The documentation is pretty OK as well: https://docs.podman.io/en/latest/markdown/podman-systemd.uni...

The only downside is that some things are not yet supported in quadlets, and that things don't map 1 to 1 between quadlets and the command line.

Re:Red Hat to contribute container tech (Podman, bootc, Comp... by jeppester on Thursday November 14, 2024 @02:15PM (#42140017)
I use podman with docker-compose files for my day-to-day work; spinning up databases and other service dependencies for locally running or containerized webapps.

podman-compose never worked very well for me, so I'm running with the podman.socket systemd service and the standalone version of docker-compose. That is however working flawlessly.

What I really like about podman (and which to be fair docker might have since catched up on) is that rootless containers work so well. Gone are the days where bind-mounting a project folder into a container would mess with your file permissions.

In my experience podman also feels easier and less invasive to install, although I can't say if the latter is really the case.

Re:Red Hat to contribute container tech (Podman, bootc, Comp... by ocular-rockular on Thursday November 14, 2024 @02:25PM (#42140117)
My only problems with Podman is the lack of up to date repos across systems, the fact that the latest raw binaries are managed by a maintainer out of the goodness of their heart, and that the VS Code extension ecosystem for managing pods is not integratable with the existing Docker stuff (and the replacement extensions are woefully underdeveloped).

Otherwise it honestly is great and preferable over Docker.

Re:Red Hat to contribute container tech (Podman, bootc, Comp... by jeppester on Thursday November 14, 2024 @02:34PM (#42140208)
I won't deny that the outdated repos was a pain in the past, but ever since ubuntu got to version 4 it's been working flawlessly for me.

I think version 4 was where podman became a reliable tool, whereas I found it to be flaky and unreliable in previous versions.

I don't use vs code extensions for managing my containers, so I can't say much about those, but I wonder if many of them won't work fine with an alias for docker and maybe the podman-socket running.

Re:Red Hat to contribute container tech (Podman, bootc, Comp... by ocular-rockular on Thursday November 14, 2024 @03:17PM (#42140720)
Its broken with alias but what's this about the podman-socket? Do you know where I can take a look at that?
Re:Red Hat to contribute container tech (Podman, bootc, Comp... by tristan957 on Thursday November 14, 2024 @03:45PM (#42141024)
I think you can use the VSCode Docker extension if you enable the Podman socket.
Re:Red Hat to contribute container tech (Podman, bootc, Comp... by avcxz on Thursday November 14, 2024 @02:36PM (#42140241)
For more information on compose files take a look at the Compose Spec [0], looks like podman compose supports the Compose Spec which Docker compose files use as well.

[0] https://github.com/compose-spec/compose-spec?tab=readme-ov-f...

Re:Red Hat to contribute container tech (Podman, bootc, Comp... by spockz on Thursday November 14, 2024 @01:58PM (#42139823)
I’ve been using it on my Fedora server because I make myself. I think all functionality and syntax is covered. However, the user feedback and TUI of docker-compose is way nicer (interactive at least). Also, podman compose does seem to recreate containers that do not need to be recreated in more cases than I have noticed docker compose do.
Re:Red Hat to contribute container tech (Podman, bootc, Comp... by jeppester on Thursday November 14, 2024 @02:24PM (#42140098)
You can run the standalone version for docker-compose against podman. You just need to have the podman.socket systemd service running.
Re:Red Hat to contribute container tech (Podman, bootc, Comp... by spockz on Thursday November 14, 2024 @04:37PM (#42141499)
Yes indeed. I have that on other systems as well. But I try to keep both around to notice these kind of differences. (I’m working on tooling that relies on docker compose files so I like to see how it behaves in different setups.)
Re:Red Hat to contribute container tech (Podman, bootc, Comp... by dbacar on Thursday November 14, 2024 @02:58PM (#42140505)
Yes it doesm even with rootless. We are using it in prod.
Re:Red Hat to contribute container tech (Podman, bootc, Comp... by lytedev on Thursday November 14, 2024 @01:48PM (#42139683)
I've been using podman-compose, yes.