On Mon, Sep 4, 2023 at 12:54 PM jklaiho@iki.fi <jklaiho@iki.fi> wrote:
Hi,

Thanks for the commit ref for context, Valentin.

Nonetheless, I would really appreciate help with how to express these old style mappings with the new UserNS option in Quadlet:

RemapUsers=manual
RemapUid=0:0:1
RemapUid=100:1:1
RemapGid=0:0:1
RemapGid=65534:1:1

Like I said, I arrived to these with trial and error, not properly understanding what I'm doing, and would rather not try to convert from one poorly understood syntax to another.

The syntax is `container ID: host ID: range`.  So `100:1:1` means that container UID 100 is mapped to host UID 1 for the range of length 1.  `100:1:10` would mean that 10 UIDs starting at 100 inside the container are mapped to 10 outside the container at UID 1.

That being said, are you sure what you specified above is correct?  In case you are not sure, can you elaborate why you want to achieve?  I am hesitant to give an answer as the ranges look strange to me.
 
- JK


On Monday, Sep 04, 2023 at 10:05 AM, Valentin Rothberg <vrothberg@redhat.com> wrote:
Thanks for reaching out!

The following commit has removed the fields from the documentation: https://github.com/containers/podman/commit/f6a50311c56d

The fields have been deprecated in favor of the new `UserNS` field which is more symmetric to the CLI.  The old fields are still functional but we decided to drop them from the docs to not encourage use.

Kind regards,
 Valentin