containers / podman-compose

a script to run docker-compose.yml using podman
GNU General Public License v2.0
4.86k stars 465 forks source link

Support generating quadlet configuration #899

Open hadmut opened 3 months ago

hadmut commented 3 months ago

Hi,

latest versions of podman support so called "quadlets" (see manpage podman-systemd.unit(5) or quadlet(5) ), which is an autogeneration of systemd units from container definitions, volume definitions or kube definitions to play kube files like for podman kube play.

Former versions of podman-compose were using pods to create a composition of containers, but, as far as I understand, recent versions use a bridge network, and creating pods has been seen just as a workaround until podman-compose was able to properly create bridge networks.

The advantage of pods was, that podman generate kube podname was able to directly generate such a kube file from a running pod, created by podman-compose, while this doesn't work for bridge based compositions.

It would be highly useful if podman-compose could support creating such kube files to have systemd start a container composition just like podman-compose, but with a kube file, in either way. Either have an option to create an old-fashioned pod instead of a bridge network, as former versions did, or something else.

What was, btw., the reason to drop support for pods in favour of bridges, and not keeping both as options?

regards

rugk commented 1 month ago

Well there is already https://github.com/k9withabone/podlet for that use case, so you may be better off by using that…