mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Add support for containers.conf
vendor in c/common config pkg for containers.conf Signed-off-by: Qi Wang qiwan@redhat.com Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/containers/common/pkg/config"
|
||||
"github.com/containers/libpod/libpod/define"
|
||||
"github.com/containers/libpod/libpod/driver"
|
||||
"github.com/containers/libpod/pkg/util"
|
||||
@ -769,10 +770,10 @@ func (c *Container) generateInspectContainerHostConfig(ctrSpec *spec.Spec, named
|
||||
// CGroup parent
|
||||
// Need to check if it's the default, and not print if so.
|
||||
defaultCgroupParent := ""
|
||||
switch c.runtime.config.CgroupManager {
|
||||
case define.CgroupfsCgroupsManager:
|
||||
switch c.runtime.config.Engine.CgroupManager {
|
||||
case config.CgroupfsCgroupsManager:
|
||||
defaultCgroupParent = CgroupfsDefaultCgroupParent
|
||||
case define.SystemdCgroupsManager:
|
||||
case config.SystemdCgroupsManager:
|
||||
defaultCgroupParent = SystemdDefaultCgroupParent
|
||||
}
|
||||
if c.config.CgroupParent != defaultCgroupParent {
|
||||
|
Reference in New Issue
Block a user