Replies: 2 comments 3 replies
-
that would make rootless podman behave differently than root, where there are no mounts created on the host as a consequence of a bind mount |
Beta Was this translation helpful? Give feedback.
-
What I meant is that "rootless" would behave more like "rootful" from an end user's perspective. As you point out, when running as root there are no mounts created. This makes sense as the containers will already have access to the mount namespace. To allow similar access from containers in a user namespace, mounts could be created in that user's mount namespace prior to launching the containers. Here is an example. It works great as root. It seems like if emptyDir was mounted in the user namespace, prior to launching the pod/containers, this example would work with rootless also, completely unchanged. Is that not the case? Thanks! |
Beta Was this translation helpful? Give feedback.
-
I saw this very good thread about bind mount propagation between rootless containers. What @giuseppe posted works perfectly - if you first
podman unshare mount --make-shared --bind /from /from
to make a sharable bind mount in the user namespace, then new bind mounts under there can be propagated in rootless mode.When running in rootless mode, it would be nice if podman would pre-create a sharable mount in the user namespace prior to launching the containers in a pod. Then the containers in the pod would be able to do mount propagation off of that mount point without having to do this manual
podman unshare mount
step prior. It would make "rootless" behave more like "rootful", which is nice.Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions