Are you doing this for rootless podman or rootfull?
I hacked my way through this very thing and eventually got it working
for rootless podman. It required some tricks but sadly I deleted the VM
long ago and don't remember them. I vaguely remember I had to add the
user into a special group on the host.
"LogDriver=passthrough" rings bells for me.
"LogTarget in /etc/systemd/system.conf" also seems familiar.
Sorry I can't remember more. What you're trying is _possible_ though.
---
Chris Evich (he/him)
Senior Quality Assurance Engineer
If there's a "hard-way", I'm the first one to implement it.
On 5/8/24 15:38, Leon Fauster via Podman wrote:
I wonder whats the current best approach for having the logs of one
container accumulated at the host layer (journald).
The container runs systemd/journald and is started via a quadlet config
with LogDriver=passthrough. So, everything that the container spells out
via stderr/stdout is captured at the host layer.
How to pass everything of the container journald to the host journald?
I played with LogTarget in /etc/systemd/system.conf without success.
I'd really appreciate any ideas!