diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-10-10 05:45:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-10 05:45:50 -0700 |
commit | a7f266891ca20214f56d0bb742896e9112f4905a (patch) | |
tree | fc85fc081c45c63756c9b3deacbfd359bc699543 /libpod/container_internal.go | |
parent | 12c9b53439d958395856c29567ec0ed44a5507ed (diff) | |
parent | c35d71e3da7a84eae94769e005407cf99d1ccb49 (diff) | |
download | podman-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/container_internal.go')
-rw-r--r-- | libpod/container_internal.go | 3 |
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 } |