From b4bc7b8828f560627d080ed6e383cb12f9f7f5b3 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 20 Nov 2017 16:33:54 -0500 Subject: Add cgroup fs by default Docker defaults to mounting the cgroup file system. Signed-off-by: Daniel J Walsh Closes: #53 Approved by: mheon --- cmd/kpod/spec.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/kpod/spec.go b/cmd/kpod/spec.go index 5033e9d09..69e81d0e5 100644 --- a/cmd/kpod/spec.go +++ b/cmd/kpod/spec.go @@ -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) -- cgit v1.2.3-54-g00ecf