OpenAPITools / OpenAPITools/openapi-generator-cli

[BUG] docker generate fails with uid > 100000

オープン
#990 コメント 3 件 リアクション 0 件 担当者 1 名 GitHub で見る

@kay-schecker がすでに取り組んでいます。

2025年9月9日 から。

bug
主要言語
TypeScript
スター
2k
フォーク
208
平均マージ
7時間 12分
マージ済み PR(30日)
6

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。