aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-10-10 05:45:50 -0700
committerGitHub <noreply@github.com>2019-10-10 05:45:50 -0700
commita7f266891ca20214f56d0bb742896e9112f4905a (patch)
treefc85fc081c45c63756c9b3deacbfd359bc699543 /libpod
parent12c9b53439d958395856c29567ec0ed44a5507ed (diff)
parentc35d71e3da7a84eae94769e005407cf99d1ccb49 (diff)
downloadpodman-a7f266891ca20214f56d0bb742896e9112f4905a.tar.gz
podman-a7f266891ca20214f56d0bb742896e9112f4905a.tar.bz2
podman-a7f266891ca20214f56d0bb742896e9112f4905a.zip
Merge pull request #4216 from baude/catchv2runc
catch runc v2 error
Diffstat (limited to 'libpod')
-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
}