mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
Merge pull request #13577 from giuseppe/drop-fedora-31-warning
libpod: drop warning for Fedora 31
This commit is contained in:
@ -1087,13 +1087,6 @@ func (c *Container) init(ctx context.Context, retainRetries bool) error {
|
|||||||
|
|
||||||
// With the spec complete, do an OCI create
|
// With the spec complete, do an OCI create
|
||||||
if _, err = c.ociRuntime.CreateContainer(c, nil); err != nil {
|
if _, err = c.ociRuntime.CreateContainer(c, nil); err != nil {
|
||||||
// Fedora 31 is carrying a patch to display improved error
|
|
||||||
// messages to better handle the V2 transition. This is NOT
|
|
||||||
// upstream in any OCI runtime.
|
|
||||||
// TODO: Remove once runc supports cgroupsv2
|
|
||||||
if strings.Contains(err.Error(), "this version of runc doesn't work on cgroups v2") {
|
|
||||||
logrus.Errorf("Oci runtime %q does not support Cgroups V2: use system migrate to mitigate", c.ociRuntime.Name())
|
|
||||||
}
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user