News for hackers. Stuff that matters.
Re:Podman vs. Docker: Comparing the two containerization tools by rektide on Wednesday February 08, 2023 @10:59PM (#34719588)
That's not what rootless means at all. The image does not matter at all. What's at stake here is whether users can run a container under their own privileges, or whether the container ultimately is run by a root level user.

In either case, whether the container uses a root or user within it isn't really a factor. There's good reasons to assume user permissions within the container, but they have nothing to do with rootless containers: the idea that a regular user can launch a container is a different concept, from the permissions inside the container.

Re:Podman vs. Docker: Comparing the two containerization tools by uneekname on Wednesday February 08, 2023 @11:14PM (#34719670)
Thanks for your response. I was under the impression that the UID of a user within a container matches that which it runs under in the host machine. It sounds like that is not the case.

From what I've read, the user running a container really starts to matter when the container is given access to the filesystem (using a volume). It sounds like the user within the container still wouldn't matter in this situation, but the user running the container on the host system would have to have appropriate permissions to the volume.

Re:Podman vs. Docker: Comparing the two containerization tools by MereInterest on Wednesday February 08, 2023 @11:48PM (#34719875)
In rootfull docker, that is the case, and the uid inside the container is identical to the uid outside the container. In rootless docker, the uid inside the container maps to a sub-uid outside the container. This way, it inherits the same permissions that your own uid has.

Honestly, I think the default behavior of rootfull docker is broken by design. Being able to run rootfull docker commands is equivalent to having sudo privileges, because the docker daemon has root privileges and will mount arbitrary files on your behalf.

Re:Podman vs. Docker: Comparing the two containerization tools by 3np on Thursday February 09, 2023 @12:25AM (#34720099)
The default behavior of rootless podman: in-container-root gets mapped to host user, anything else gets mapped to namespaced uids in a per-user specified range.