I wonder if I might bother you for a bit of help. I have a number of podman containers for training sessions which are launched via systemd with a unit file containing

[Service]
MemoryMax=2G
ExecStart=/etc/ansinode %i

/etc/ansinode is a shell script which invokes podman-run passing it, amongst others, the option `--memory=2g`.

I'm trying to limit the amount of RAM users "see" in the container.

Neither the unit file setting nor podman-run options have any effect.

What am I doing incorrectly?

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/jpmens/statuses/114739374946337243 on your instance and quote it. (Note that quoting is not supported in Mastodon.)