From 70b44848119def655b836efa47dbfebde32e1bcb Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sun, 12 Aug 2018 05:39:55 -0400 Subject: podman in rootless mode will only work with cgroupfs at this point. If user does not pass in cgroup manager and running in rootless mode, then we need to force the cgroupfs support until/unless we get support for rootless systemd support. Signed-off-by: Daniel J Walsh Closes: #1261 Approved by: mheon --- cmd/podman/libpodruntime/runtime.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd/podman/libpodruntime') diff --git a/cmd/podman/libpodruntime/runtime.go b/cmd/podman/libpodruntime/runtime.go index 9d1347cc5..f1f2b963c 100644 --- a/cmd/podman/libpodruntime/runtime.go +++ b/cmd/podman/libpodruntime/runtime.go @@ -105,6 +105,10 @@ func GetRuntimeWithStorageOpts(c *cli.Context, storageOpts *storage.StoreOptions if c.GlobalIsSet("cgroup-manager") { options = append(options, libpod.WithCgroupManager(c.GlobalString("cgroup-manager"))) + } else { + if rootless.IsRootless() { + options = append(options, libpod.WithCgroupManager("cgroupfs")) + } } // TODO flag to set libpod static dir? -- cgit v1.2.3-54-g00ecf