mirror of
https://github.com/containers/podman.git
synced 2025-07-03 09:17:15 +08:00
Add cgroup fs by default
Docker defaults to mounting the cgroup file system. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #53 Approved by: mheon
This commit is contained in:

committed by
Atomic Bot

parent
e1311ea722
commit
b4bc7b8828
@ -55,6 +55,7 @@ func setupCapabilities(config *createConfig, configSpec *spec.Spec) error {
|
||||
// Parses information needed to create a container into an OCI runtime spec
|
||||
func createConfigToOCISpec(config *createConfig) (*spec.Spec, error) {
|
||||
g := generate.New()
|
||||
g.AddCgroupsMount("ro")
|
||||
g.SetProcessCwd(config.workDir)
|
||||
g.SetProcessArgs(config.command)
|
||||
g.SetProcessTerminal(config.tty)
|
||||
|
Reference in New Issue
Block a user