summaryrefslogtreecommitdiff
path: root/libpod/container_log_linux.go
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2021-08-19 17:33:20 +0200
committerPaul Holzinger <pholzing@redhat.com>2021-08-19 17:33:20 +0200
commit16dfce486b45d5989dcba503cd0797bc7d66bee4 (patch)
tree3e743cf5885737f3c0896c8efffddeed7a265387 /libpod/container_log_linux.go
parent23804d95f6589eca37e7cdcfcfaeb1e63e47b209 (diff)
downloadpodman-16dfce486b45d5989dcba503cd0797bc7d66bee4.tar.gz
podman-16dfce486b45d5989dcba503cd0797bc7d66bee4.tar.bz2
podman-16dfce486b45d5989dcba503cd0797bc7d66bee4.zip
Podman info output plugin information
For docker compat include information about available volume, log and network drivers which should be listed under the plugins key. Fixes #11265 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'libpod/container_log_linux.go')
-rw-r--r--libpod/container_log_linux.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpod/container_log_linux.go b/libpod/container_log_linux.go
index 11f1be7f9..4eb600bfe 100644
--- a/libpod/container_log_linux.go
+++ b/libpod/container_log_linux.go
@@ -9,6 +9,7 @@ import (
"strings"
"time"
+ "github.com/containers/podman/v3/libpod/define"
"github.com/containers/podman/v3/libpod/events"
"github.com/containers/podman/v3/libpod/logs"
"github.com/coreos/go-systemd/v22/sdjournal"
@@ -24,6 +25,10 @@ const (
journaldLogErr = "3"
)
+func init() {
+ logDrivers = append(logDrivers, define.JournaldLogging)
+}
+
func (c *Container) readFromJournal(ctx context.Context, options *logs.LogOptions, logChannel chan *logs.LogLine) error {
journal, err := sdjournal.NewJournal()
if err != nil {