Skip to content

Commit

Permalink
Merge pull request #1808 from AkihiroSuda/fix-bad-merge
Browse files Browse the repository at this point in the history
Fix merge conflict
  • Loading branch information
crosbymichael authored May 30, 2018
2 parents 0e56164 + 63bb0fe commit ecd55a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utils_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ func loadFactory(context *cli.Context) (libcontainer.Factory, error) {
// We default to cgroupfs, and can only use systemd if the system is a
// systemd box.
cgroupManager := libcontainer.Cgroupfs
if isRootless() {
rootless, err := isRootless(context)
if err != nil {
return nil, err
}
if rootless {
cgroupManager = libcontainer.RootlessCgroupfs
}
if context.GlobalBool("systemd-cgroup") {
Expand Down

0 comments on commit ecd55a4

Please sign in to comment.