mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
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:
@ -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")
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user