aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-10-07 19:11:42 -0500
committerbaude <bbaude@redhat.com>2019-10-09 09:15:18 -0500
commitc35d71e3da7a84eae94769e005407cf99d1ccb49 (patch)
treeb57dcc2ca0f7e5be4dcdd8b82aed84ad76f98fe3
parentc3c40f970e6441b70ac62fb050a35f79fedb8896 (diff)
downloadpodman-c35d71e3da7a84eae94769e005407cf99d1ccb49.tar.gz
podman-c35d71e3da7a84eae94769e005407cf99d1ccb49.tar.bz2
podman-c35d71e3da7a84eae94769e005407cf99d1ccb49.zip
catch runc v2 error
when runc returns an error about not being v2 complient, catch the error and logrus an actionable message for users. Signed-off-by: baude <bbaude@redhat.com>
-rw-r--r--libpod/container_internal.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index a4dcd23be..ac921d737 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -939,6 +939,9 @@ func (c *Container) init(ctx context.Context, retainRetries bool) error {
// With the spec complete, do an OCI create
if err := c.ociRuntime.createContainer(c, nil); err != nil {
+ 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
}