

Yes, rootless podman.
Just to see if I understood correctly: So your container is running as 999, and UserNS=keep-id:uid=999,gid=999 maps 999 (the user used inside the container) to the host (in my case 1000). So any files the container creates have their permission set to 1000 and can be read/modified by both the host user (1000) and the container.
UserNS=keep-id:uid=999,gid=999 ONLY maps the UIDs and does not set the UID of the container.
I think I understand now, thanks for the example, that helped.
I see, that makes sense. Thank you.