In case we're running on RHEL7 kernel, which has non-working and broken kernel memory controller, add 'nokmem' build tag so that runc never enables kmem accounting. For more info, see the following runc commit: https://github.com/opencontainers/runc/commit/6a2c1559684 This behavior can be overriden by having `RUNC_NOKMEM` environment variable set (e.g. to empty value to disable setting nokmem). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> (cherry picked from commit 8972aa9350d52e4a7e58242447b7a9d2f0c27f37) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 8486ea11ae800a1e6d634b741dfb007ba29f6003 Component: engine