cannot bind mount without recursion #22107
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.
Issue Description
The documentation claims volumes are not mounted recursively:
But it looks like rbind is the default, and since flags look like they are additive in the code I have not been able to find a way to disable
MS_REC
to make it work non-recursively.Steps to reproduce the issue
Steps to reproduce the issue
mkdir -p /tmp/podman/submount; mount -t tmpfs tmpfs /tmp/podman/submount
podman run --rm -v /tmp/podman:/tmp/podman docker.io/alpine df | grep tmp/podman
Describe the results you received
submount was listed despite not specifying rbind for the volume
Describe the results you expected
submount should not be present
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
No
Additional environment details
(sorry, can't run podman 5.0.0 on debian bookworm because go version is too old, but I didn't see any code change around that and the behaviour has been the same since at least podman 3...)
Additional information
Running with strace one can see MS_REC is being set:
Trying various flags like
:bind
has no impact, so it's like rbind is the default despite being documented otherwise.The text was updated successfully, but these errors were encountered: