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.
Closes:
Approved by: mheon
@@ -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?
