podman: rootless net dependency fails to mount SHM #2556
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.
rootless
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When running in rootless, adding a net dependency somehow messes with the ipc namespace. Somehow, a container fails to mount SHM.
Steps to reproduce the issue:
1.
podman run -d --add-host redis:127.0.0.1 --name c1 busybox httpd -f -p 80
2.
podman run --net container:c1 busybox ping -c 5 redis
Describe the results you received:
Error: failed to mount shm tmpfs "/home/demo/.local/share/containers/storage/vfs-containers/34bed25987df37b0f50cc7576899c68ead675b4c45e19695825d2b7f20dab856/userdata/shm": operation not permitted
Describe the results you expected:
a successful ping to the redis host, with no failure to mount tmpfs.
Specifically, I expected it to work the same as the same in root, or this in rootless:
podman run -d --add-host redis:127.0.0.1 --name c1 busybox httpd -f -p 80
podman run --net container:c1 --ipc host busybox ping -c 5 redis
I also expect it to work similarly to this, but without failing the redis ping
podman run -d --add-host redis:127.0.0.1 --name c1 busybox httpd -f -p 80
podman run busybox ping -c 5 redis
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
fedora 29 desktop
The text was updated successfully, but these errors were encountered: