quadlet: Switch log-driver to passthrough

This is much better for the systemd case becase we pass the journal
socket fds directly to the container. This means less copying of the
logs, but it also means the journal will correctly get the peer
process id when it tries to extract things like the name of what
is logging something.

With this we correctly name the logging process rather than claim
everything comes from conmon.

Signed-off-by: Alexander Larsson <alexl@redhat.com>
This commit is contained in:
Alexander Larsson
2022-10-20 09:52:28 +02:00
parent 998f834b04
commit d7e248dcff
2 changed files with 2 additions and 3 deletions

View File

@ -353,8 +353,7 @@ func ConvertContainer(container *parser.UnitFile, isUser bool) (*parser.UnitFile
"-d",
// But we still want output to the journal, so use the log driver.
// TODO: Once available we want to use the passthrough log-driver instead.
"--log-driver", "journald",
"--log-driver", "passthrough",
// Never try to pull the image during service start
"--pull=never")

View File

@ -4,7 +4,7 @@
## assert-podman-args "--rm"
## assert-podman-args "--replace"
## assert-podman-args "-d"
## assert-podman-args "--log-driver" "journald"
## assert-podman-args "--log-driver" "passthrough"
## assert-podman-args "--pull=never"
## assert-podman-args "--init"
## assert-podman-args "--runtime" "/usr/bin/crun"