podman run chokes on --memory-swap=-1 #5091
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I am trying to use podman as a docker replacement in a project, where we make use of docker's memory accounting functions. For docker, I can specify --memory-swap=-1 to allow unlimited swap up to the amount available on the host. According to the podman-run man page, the behavior should be identical for podman, but I get an error "invalid value for memory-swap: invalid size: '-1'".
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Instead of the last line that indicates an error, an interactive session in an Ubuntu 16.04 container with constrained memory and unlimited swap space (to the host limit) should be started.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
physical
The text was updated successfully, but these errors were encountered: