summaryrefslogtreecommitdiff
path: root/libpod/container_internal.go
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2018-02-20 10:29:41 -0700
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-22 12:39:08 +0000
commit3f004df38482e0f66bde5cc78028d57d52219997 (patch)
tree73ca602de3b3953e583ae82296d5d793fad0606a /libpod/container_internal.go
parentf1f0f37dc142dc1687df1750c0d8c8fe1f79111a (diff)
downloadpodman-3f004df38482e0f66bde5cc78028d57d52219997.tar.gz
podman-3f004df38482e0f66bde5cc78028d57d52219997.tar.bz2
podman-3f004df38482e0f66bde5cc78028d57d52219997.zip
Implement podman run option --cgroup-parent
Example: sudo /usr/local/bin/podman run --cgroup-parent=/zzz fedora cat /proc/self/cgroup Signed-off-by: Jhon Honce <jhonce@redhat.com> Closes: #370 Approved by: rhatdan
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r--libpod/container_internal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index 858cf3cbe..6e9852d1e 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -146,7 +146,7 @@ func newContainer(rspec *spec.Spec, lockDir string) (*Container, error) {
ctr.config.CreatedTime = time.Now()
ctr.config.ShmSize = DefaultShmSize
- ctr.config.CgroupParent = CgroupParent
+ ctr.config.CgroupParent = DefaultCgroupParent
// Path our lock file will reside at
lockPath := filepath.Join(lockDir, ctr.config.ID)