-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CI:DOCS] Quadlet: RemapUsers documentation fixes #17981
[CI:DOCS] Quadlet: RemapUsers documentation fixes #17981
Conversation
/hold |
a104a79
to
006bb7a
Compare
/hold cancel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@giuseppe PTAL
@@ -110,7 +110,7 @@ Valid options for `[Container]` are listed below: | |||
| PodmanArgs=--add-host foobar | --add-host foobar | | |||
| PublishPort=true | --publish | | |||
| ReadOnly=true | --read-only | | |||
| RemapGid=keep-id | --group-add keep-id | | |||
| RemapGid=0:20000:400 | --group-add 0:20000:400 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I meant in my comment: Shouldn't the podman run equivalent
be --gidmap
instead of --group-add
? At least this is what quadlet uses in the RemapUsers=manual
case:
podman/pkg/systemd/quadlet/quadlet.go
Lines 907 to 914 in 60d16d9
case "manual": | |
if supportManual { | |
for _, uidMap := range uidMaps { | |
podman.addf("--uidmap=%s", uidMap) | |
} | |
for _, gidMap := range gidMaps { | |
podman.addf("--gidmap=%s", gidMap) | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. I've fixed it to gidmap
. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, vrothberg, ygalblum The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fix the example for RemapGid from keep-id to keep-groups Reflect the chnages to the support for keep-id in Containers as well Signed-off-by: Ygal Blum <[email protected]>
006bb7a
to
d79519e
Compare
@vrothberg @giuseppe I've made a change after your LGTM following @xduugu's comment. PTAL |
/lgtm |
Fix the example for RemapGid from keep-id to keep-groups Reflect the chnages to the support for keep-id in Containers as well
Does this PR introduce a user-facing change?
No