diff options
Diffstat (limited to 'libpod/container.go')
-rw-r--r-- | libpod/container.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libpod/container.go b/libpod/container.go index c07f4c78d..9ac08cba0 100644 --- a/libpod/container.go +++ b/libpod/container.go @@ -368,6 +368,8 @@ type ContainerConfig struct { CgroupParent string `json:"cgroupParent"` // LogPath log location LogPath string `json:"logPath"` + // LogDriver driver for logs + LogDriver string `json:"logDriver"` // File containing the conmon PID ConmonPidFile string `json:"conmonPidFile,omitempty"` // RestartPolicy indicates what action the container will take upon @@ -775,6 +777,11 @@ func (c *Container) RestartRetries() uint { return c.config.RestartRetries } +// LogDriver returns the log driver for this container +func (c *Container) LogDriver() string { + return c.config.LogDriver +} + // RuntimeName returns the name of the runtime func (c *Container) RuntimeName() string { return c.runtime.ociRuntime.name |