OpenAPITools / OpenAPITools/openapi-generator-cli

[BUG] docker generate fails with uid > 100000

Aperta
#990 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@kay-schecker ci sta già lavorando.

Dal 9/9/2025.

bug
Lingua principale
TypeScript
Stelle
2k
Fork
208
Merge medio
7h 12m
PR unite (30g)
6

Descrizione

🐛 Bug Report:

Describe the bug

When running the generator and using podman with a large uid (over 100000), launching the OCI container fails with an error.

[[v1] src/openapi/api-docs.json] Error: OCI runtime error: crun: setresuid to xxxxxxxxxx: Invalid argument

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:

  1. Log in with a user with uid > 100000.
  2. Configure openapitools.json with "useDocker": true
  3. Run npx openapi-generator-cli generate
  4. 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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.