Unable to set shm-size for /dev/shm shared by a pod #14609
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
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 feature
Description
I am trying to increase the size of the shared /dev/shm attached to the containers in a pod.
There is no --shm-size option to podman pod create and the --shm-size option for podman run is rejected when the container is being added to a pod with
--share ipc
enabled (as is the default).Steps to reproduce the issue:
podman pod create --name shm-pod --shm-size 256M
podman pod create --name shm-pod
podman run --shm-size 256M --rm -t --pod shm-pod alpine mount | grep shm
podman run --rm -t --pod shm-pod alpine mount | grep shm
Describe the results you received:
--shm-size
--shm-size
Describe the results you expected:
I would like some way to specify
--shm-size
for a pod with--share ipc
.Additional information you deem important (e.g. issue happens only occasionally):
Using pod create
--share
to un-share the ipc namespace (which is awkward, as it requires listing the default shared namespaces excluding ipc) does allow specifying--shm-size
on thepodman run
command, but then /dev/shm is not shared.Output of
podman version
:The text was updated successfully, but these errors were encountered: