Skip to content

Commit ecd55a4

Browse files
Merge pull request #1808 from AkihiroSuda/fix-bad-merge
Fix merge conflict
2 parents 0e56164 + 63bb0fe commit ecd55a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

utils_linux.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ func loadFactory(context *cli.Context) (libcontainer.Factory, error) {
3939
// We default to cgroupfs, and can only use systemd if the system is a
4040
// systemd box.
4141
cgroupManager := libcontainer.Cgroupfs
42-
if isRootless() {
42+
rootless, err := isRootless(context)
43+
if err != nil {
44+
return nil, err
45+
}
46+
if rootless {
4347
cgroupManager = libcontainer.RootlessCgroupfs
4448
}
4549
if context.GlobalBool("systemd-cgroup") {

0 commit comments

Comments
 (0)