Skip to content

Commit

Permalink
Merge pull request #4171 from giuseppe/allow-cgroupfs-on-cgroup
Browse files Browse the repository at this point in the history
rootless: allow cgroupfs manager on cgroups v2
  • Loading branch information
openshift-merge-robot authored Oct 2, 2019
2 parents 2648955 + 4ad2cd5 commit dac7889
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/spec/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@ func (config *CreateConfig) createConfigToOCISpec(runtime *libpod.Runtime, userM
if err != nil {
return nil, err
}
if !addedResources {
configSpec.Linux.Resources = &spec.LinuxResources{}
}
if addedResources && !cgroup2 {
return nil, errors.New("invalid configuration, cannot set resources with rootless containers not using cgroups v2 unified mode")
}
Expand Down

0 comments on commit dac7889

Please sign in to comment.