diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2017-11-20 16:33:54 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-11-20 22:47:58 +0000 |
commit | b4bc7b8828f560627d080ed6e383cb12f9f7f5b3 (patch) | |
tree | 88dd3cd43d79d9e2112cc336390b517a6b843304 | |
parent | e1311ea722e26e3680af411876a43bbe85ccf83f (diff) | |
download | podman-b4bc7b8828f560627d080ed6e383cb12f9f7f5b3.tar.gz podman-b4bc7b8828f560627d080ed6e383cb12f9f7f5b3.tar.bz2 podman-b4bc7b8828f560627d080ed6e383cb12f9f7f5b3.zip |
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
-rw-r--r-- | cmd/kpod/spec.go | 1 |
1 files changed, 1 insertions, 0 deletions
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) |