aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-09-08 17:41:57 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-09-08 17:53:04 -0400
commit2f967b81cb48ac4a14083f150717bca088a1450f (patch)
tree276baefcd11096f38f29a9c558194cfc28370a94 /libpod
parent26c8549ae3d4f5c3742d006e40a51080d5ae0746 (diff)
downloadpodman-2f967b81cb48ac4a14083f150717bca088a1450f.tar.gz
podman-2f967b81cb48ac4a14083f150717bca088a1450f.tar.bz2
podman-2f967b81cb48ac4a14083f150717bca088a1450f.zip
Add logDriver to podman info
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/define/info.go1
-rw-r--r--libpod/info.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/libpod/define/info.go b/libpod/define/info.go
index 95c1196dd..73df80087 100644
--- a/libpod/define/info.go
+++ b/libpod/define/info.go
@@ -36,6 +36,7 @@ type HostInfo struct {
Hostname string `json:"hostname"`
IDMappings IDMappings `json:"idMappings,omitempty"`
Kernel string `json:"kernel"`
+ LogDriver string `json:"logDriver"`
MemFree int64 `json:"memFree"`
MemTotal int64 `json:"memTotal"`
OCIRuntime *OCIRuntimeInfo `json:"ociRuntime"`
diff --git a/libpod/info.go b/libpod/info.go
index 8f4c7f015..31ec9cdc1 100644
--- a/libpod/info.go
+++ b/libpod/info.go
@@ -126,6 +126,7 @@ func (r *Runtime) hostInfo() (*define.HostInfo, error) {
Linkmode: linkmode.Linkmode(),
CPUs: runtime.NumCPU(),
Distribution: hostDistributionInfo,
+ LogDriver: r.config.Containers.LogDriver,
EventLogger: r.eventer.String(),
Hostname: host,
IDMappings: define.IDMappings{},