mirror of
https://github.com/containers/podman.git
synced 2025-10-18 03:33:32 +08:00
Added --log-driver and journald logging
Signed-off-by: Peter Hunt <pehunt@redhat.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user