diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-06-19 14:22:09 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-06-26 13:17:06 +0200 |
commit | e27fef335a4a0d2666542028986100a2f60b3e18 (patch) | |
tree | c60a3a502498929a272bf4af8906063dcecacc40 /libpod/runtime_ctr.go | |
parent | 1778bfa5fef337158537a77344300e1a755a7ffe (diff) | |
download | podman-e27fef335a4a0d2666542028986100a2f60b3e18.tar.gz podman-e27fef335a4a0d2666542028986100a2f60b3e18.tar.bz2 podman-e27fef335a4a0d2666542028986100a2f60b3e18.zip |
stats: fix cgroup path for rootless containers
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod/runtime_ctr.go')
-rw-r--r-- | libpod/runtime_ctr.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go index bd1d8a198..79e18dcd1 100644 --- a/libpod/runtime_ctr.go +++ b/libpod/runtime_ctr.go @@ -191,6 +191,8 @@ func (r *Runtime) setupContainer(ctx context.Context, ctr *Container, restore bo return nil, errors.Wrapf(err, "error retrieving pod %s cgroup", pod.ID()) } ctr.config.CgroupParent = podCgroup + } else if rootless.IsRootless() { + ctr.config.CgroupParent = SystemdDefaultRootlessCgroupParent } else { ctr.config.CgroupParent = SystemdDefaultCgroupParent } |