Replies: 3 comments 3 replies
-
|
So, not really knowing what I'm doing, I tried actually following the hints provided and create ID mappings for the root user. I noticed that the official podman container does this, so I guess it's not as crazy of a notion as I thought. Now, this seems to work for a single container. Subsequent container creation fails: I am using Proxmox to run LXC containers, which I believe allows mapping 65536 IDs for unprivileged containers. Would that be the issue here? Assuming I can sort that out, might I expect any surprises running containers like this? (rootful-but-not-really) |
Beta Was this translation helpful? Give feedback.
-
|
I've had similar issues, most features work great out of the box, but idmapping inside an LXC container is tricky and it'd be great to have docs on it. Docs for Podman inside systemd-nspawn containers could also be interesting to have. On one hand, systemd integration is an explicit goal of podman, on the other hand, systemd-nspawn for system containers is less common in production setups than LXC since the tooling around the LXC+ZFS stack is much more mature than any other system container solution. |
Beta Was this translation helpful? Give feedback.
-
|
I am not actually sure whether the lack of Is there anything that could be changed in podman to allow for this setup? What feature do I need to request? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to secure my container environment. I was going to settle for running podman as root in an unprivileged LXC container, but then I discovered the
--userns=autooption. Getting that working was not as straightforward as I had hoped, however. As far as I understand the code, I am considered a rootless user because of the lack ofCAP_SYS_ADMIN, which then causes podman to look for ID mappings for therootuser, instead of thecontainersuser. I understand I shouldn't hand outCAP_SYS_ADMINif I can help it, so is there any way around this?I found a couple of articles sort of touching on the subject, but I'm not sure how it helps me.
https://www.redhat.com/en/blog/podman-inside-container
https://samuel.forestier.app/blog/security/podman-rootless-in-podman-rootless-the-debian-way
Beta Was this translation helpful? Give feedback.
All reactions