Podman container cannot be created by normal user with memory limit in OpenShift Container Platform 4.

Solution Verified - Updated -

Issue

  • Creating the podman container with specified memory limit gives an error.

While trying to create the podman container using the below command :

$ podman run -it -m 512M registry.redhat.io/ubi8/ubi-minimal /bin/bash
  • Below error pop ups after executing the above command :
Error: invalid configuration, cannot specify resource limits without cgroups v2 and --cgroup-manager=systemd

Environment

  • Red Hat Enterprise Linux 8
  • podman-1.6.4-2.module+el8.1.1+5363+bf8ff1af.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content