Open asnaylor opened 1 month ago
What happens when you explicitly set --log-driver=journald
?
Still no logs
$ podman-hpc run -dt -p 8080:80/tcp --log-driver=journald docker.io/library/httpd
$ podman-hpc ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
86c835c19850 docker.io/library/httpd:latest httpd-foreground 4 seconds ago Up 4 seconds 0.0.0.0:8080->80/tcp lucid_shaw
$ podman-hpc logs 86c835c19850
$ podman-hpc inspect 86c835c19850 | jq '.[0].HostConfig.LogConfig'
{
"Type": "journald",
"Config": null,
"Path": "",
"Tag": "",
"Size": "0B"
}
There are no logs created when running this container (which uses the default log driver
journald
):But if you change the log-driver to
json-file
it works:Is it possible to get it working with the default log-driver
journald
?