Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[FR] Support running Docker image as non-root user

オープン
#6,484 コメント 4 件 リアクション 1 件 担当者 1 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@dermetfan がすでに取り組んでいます。

2026年6月10日 から。

  • #6599 @dermetfan による — マージ済み

評価

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

説明

docker Stale

Internal/External
External otherwise. (Midnight)

Area
Other Any other topic (Delegation, Ranking, ...).

Summary
The run-node script unconditionally writes to /usr/local/bin/env, a root-owned path inside the container filesystem, making it impossible to run the container as a non-root user. Additionally, when using the config merge feature, the entrypoint script writes to /opt/cardano/config//, which also fails as non-root.

Steps to reproduce

  1. Run ghcr.io/intersectmbo/cardano-node:10.5.2 with a non-root security context:
    securityContext:
    runAsNonRoot: true
    runAsUser: 1001
    runAsGroup: 1001
  2. Container crashes with:
    /usr/local/bin/run-node: line 91: /usr/local/bin/env: Permission denied
  3. If CARDANO_CONFIG_JSON_MERGE is also set, the entrypoint additionally fails with:
    /usr/local/bin/entrypoint: line 31: /opt/cardano/config/preview/config-merged.json: Permission denied

Expected behavior
The container should support running as a non-root user. Generated files should be written to a user-writable location (e.g. /tmp) instead of root-owned paths:

  • run-node writeRootEnv() (line 91): write to /tmp/env instead of /usr/local/bin/env
  • entrypoint (line 31): write config-merged.json / topology-merged.json to /tmp instead of /opt/cardano/config//

System info (please complete the following information):

  • OS Name: Linux (Kubernetes)
  • OS Version: Kernel 5.10
  • Node version: cardano-node 10.5.2 (ghcr.io/intersectmbo/cardano-node:10.5.2)
  • CLI version: N/A
主要言語
Haskell
スター
3.2k
フォーク
763
平均マージ
2日 6時間
マージ済み PR(30日)
18

環境構築

はじめの一歩

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

IntersectMBO/cardano-node のほかの issue

IntersectMBO/cardano-node の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

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

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