summaryrefslogtreecommitdiff
path: root/cmd/kpod/spec.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2017-11-20 16:33:54 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-20 22:47:58 +0000
commitb4bc7b8828f560627d080ed6e383cb12f9f7f5b3 (patch)
tree88dd3cd43d79d9e2112cc336390b517a6b843304 /cmd/kpod/spec.go
parente1311ea722e26e3680af411876a43bbe85ccf83f (diff)
downloadpodman-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
Diffstat (limited to 'cmd/kpod/spec.go')
-rw-r--r--cmd/kpod/spec.go1
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)