You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] docker generate fails with uid > 100000 #990
openapi-generator-cli is running the OCI container with command line option --user xxxxxxxxxx:yyyyy and this is outside the range of available namespace users.
Steps to Reproduce
Steps to reproduce the behavior:
Log in with a user with uid > 100000.
Configure openapitools.json with "useDocker": true
Run npx openapi-generator-cli generate
See error
Expected behavior
Generator runs and generates files
Screenshots
If applicable, add screenshots to help explain your problem.
Operation System (please complete the following information):
OS: RHEL 9
Version 9.6
Package System (please complete the following information):
Node 22.12.0
NPM 10.9.0
openapi-generator-cli 2.23.1
Open API Generator 6.6.0
Additional Comments
I am using rootless podman with the docker command mapped to podman behind the scenes.
Activity
[-][BUG][/-][+][BUG] docker generate fails with uid > 100000[/+]bamapookie commentedon Sep 9, 2025
Also, I did find this: podman-container-tools/podman#21293
It indicates that an additional parameter might be needed:
--userns=keep-id:uid=xxxxxxxxxx,gid=yyyyybamapookie commentedon Sep 9, 2025
Updated to include that I am using rootless podman.
bamapookie commentedon Sep 9, 2025
I added
10000 < a.uid ? `--userns-keep-id:uid${a.uid}=,gid=${a.gid}` : "" ,to the docker command line inmain.js, and that worked.