podman run --userns fails with gidmapping=100:@${GID}
but works with gidmapping=100:@${UID}
#25117
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Issue Description
When i run
podman run --userns="auto:uidmapping=405:@${UID},gidmapping=100:@${GID}" --user guest alpine whoami
, i get syntax error:Error: parsing id map value "@": strconv.ParseUint: parsing "": invalid syntax
Steps to reproduce the issue
Run
podman run --userns="auto:uidmapping=405:@${UID},gidmapping=100:@${GID}" --user guest alpine whoam
Describe the results you received
Error: parsing id map value "@": strconv.ParseUint: parsing "": invalid syntax
Describe the results you expected
This should replace ${GID} in the argument with the GID of the current user. The same way that it currently replaces ${UID} with current user's UID. For example, this command currently works fine:
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: