Skip to content

Commit

Permalink
podman in rootless mode will only work with cgroupfs at this point.
Browse files Browse the repository at this point in the history
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 <[email protected]>

Closes: #1261
Approved by: mheon
  • Loading branch information
rhatdan authored and rh-atomic-bot committed Aug 14, 2018
1 parent 5d7b31d commit 70b4484
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/podman/libpodruntime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 70b4484

Please sign in to comment.