Some years ago, I started using #Docker #rootless for my #selfhosting needs. I was quite happy with it, even if finding information about rootless mode has been quite difficult.
I mostly used #compose setups.

Some days ago, I looked at #podman to replace those setups with a more modern stack. Podman works well for single containers but not that much podman-compose: don't believe the articles telling you that it's automatic, it's not!

#containers #apps #linux #floss

Containers could not communicate together and the solution is to get rid of the compose file, create a pod (exposing network ports) and run the containers inside it.
This is working well but the setup needs to be documented elsewhere (the compose.yaml was sufficient before).

With systemd per-user (lingering), podman pods/containers continue to run after logout.
But what happens after a reboot? You need to either
1. `podman generate systemd` which output long and awful systemd units

2. look at quadlets, which I was going to do before I found
3. read https://www.reddit.com/r/podman/comments/1hau1qt/podman_automatically_start_containers_on_boot/ and copy the `podman-restart.service` in your systemd user setup: simple, easy, I like that!

I think I will migrate my other services one by one if no other problem appears.

One caveat: the podman documentation is really bad and you need to search everywhere to find what I think is basic information (like what to migrate compose to, or how to create quadlets...).

@daks It looks like you are reading outdated howtos. Quadlets should nowadays automatically generate the systemd services and obey what you put in for start behaviour.
@chris42 I didn't really look at quadlets yet because I found another very simple solution.
The main problem is that the official doc https://docs.podman.io is not sufficient, it's not much than manpages. No tutorial about migration from Docker, no doc about quadlets, nothing.
So I rely on a web search and I what I found was mostly obsolete documentation, so I lose time, and patience.
What is Podman? — Podman documentation

@chris42 I was wrong, I found doc about quadlets, I am currently reading it, I'll see if it's enough

@daks
This is my go to page: https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html

Make sure you set the right version on the bottom right.
Examples are on the end of the page

podman-systemd.unit — Podman documentation

@chris42 this is the one I'm reading :)
@chris42 this page is horribly long! I won't read all that, I need a simple example to start testing it. Back to web search :)