Bind mounting possible inside rootless container #26158
Closed
tobiasjakobi-lr
started this conversation in
General
Replies: 1 comment 5 replies
-
You provide no details how the podman container is created/run so it hard to tell what is wrong. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I wanted to inquire if it is somehow possible to allow bind mounting from inside a rootless container.
The reason for the question is that I'm trying to "reorganize" the OCI containers of our team. And it turns out that there is one container, which only works with rootfull Docker in privileged mode.
This container contains another rootfs, which is then entered via schroot.
As I'm not a big fan of running any kind of container technology as root, I'm looking into ways to get all this running in rootless (and possibly unprivileged) Podman containers. This proves to be difficult as schroot does some bind mounting internally and then fails.
In fact I get the same "permission denied" error when manually trying to bind mount something trivial. So mounting is a problem. No idea if
chroot()
becomes the new problem once this is solved, but I'm going one step at a time here.Any ideas on how to solve this? Or maybe it's just not technically possible and this whole "nested rootfs" business is a bad idea anyway.
Thanks in advance!
With best wishes,
Tobias
Beta Was this translation helpful? Give feedback.
All reactions