OpenAPITools / OpenAPITools/openapi-generator-cli

[BUG] docker generate fails with uid > 100000

Abierto
#990 3 comentarios 0 reacciones 1 asignado Ver en GitHub

@kay-schecker ya está trabajando en esto.

Desde el 9/9/2025.

bug
Lenguaje dominante
TypeScript
Estrellas
2k
Forks
208
Merge medio
7 h 12 min
PR fusionados (30 d)
6

Descripción

🐛 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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.