diff --git a/libkpod/container_server.go b/libkpod/container_server.go index e894537e..ea2a84fa 100644 --- a/libkpod/container_server.go +++ b/libkpod/container_server.go @@ -121,7 +121,7 @@ func New(config *Config) (*ContainerServer, error) { return nil, err } - runtime, err := oci.New(config.Runtime, config.RuntimeUntrustedWorkload, config.DefaultWorkloadTrust, config.Conmon, config.ConmonEnv, config.CgroupManager, config.ContainerExitsDir) + runtime, err := oci.New(config.Runtime, config.RuntimeUntrustedWorkload, config.DefaultWorkloadTrust, config.Conmon, config.ConmonEnv, config.CgroupManager, config.ContainerExitsDir, config.LogSizeMax) if err != nil { return nil, err } diff --git a/oci/oci.go b/oci/oci.go index 7f03ef0f..e11c8cb4 100644 --- a/oci/oci.go +++ b/oci/oci.go @@ -38,7 +38,7 @@ const ( ) // New creates a new Runtime with options provided -func New(runtimeTrustedPath string, runtimeUntrustedPath string, trustLevel string, conmonPath string, conmonEnv []string, cgroupManager string, containerExitsDir string) (*Runtime, error) { +func New(runtimeTrustedPath string, runtimeUntrustedPath string, trustLevel string, conmonPath string, conmonEnv []string, cgroupManager string, containerExitsDir string, logSizeMax int64) (*Runtime, error) { r := &Runtime{ name: filepath.Base(runtimeTrustedPath), trustedPath: runtimeTrustedPath, @@ -48,6 +48,7 @@ func New(runtimeTrustedPath string, runtimeUntrustedPath string, trustLevel stri conmonEnv: conmonEnv, cgroupManager: cgroupManager, containerExitsDir: containerExitsDir, + logSizeMax: logSizeMax, } return r, nil } @@ -62,6 +63,7 @@ type Runtime struct { conmonEnv []string cgroupManager string containerExitsDir string + logSizeMax int64 } // syncInfo is used to return data from monitor process to daemon