Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Explain how to use/build rootless aka using the node user instead of the default root user

未關閉
#2,287 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

  • #2288 來自 @rugk —— 已關閉,未合併

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
45/100
Issue 類型
文件
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
docker
領域
documentation

研究方向

從 issue 中連結的 README.md 區段開始,接著查看 Docker 關於 rootless 和 non-root 最佳實務的指引。記錄如何使用 node 使用者而非 root 來建置和使用 Node.js 映像檔,包括典型應用程式建置所需的相關步驟;README 應清楚說明此工作流程。

由索引模型根據 Issue 內容生成。

描述

docs

Problem

Many people likely follow your simple guide here.

It is, however, a security best practice to make your service run as non-root inside the container: https://docs.docker.com/build/building/best-practices/#user

Especially when it is executed in a rootful way this increases the security.

Solution

There is no documentation in the README to run it like this, but the usual steps for building an app likely will be similar?

Alternatives to Consider

N/A

Came here from https://github.com/orangecoding/fredy/issues/207 BTW

主要語言
Dockerfile
星號
8.6k
分支
2k
平均合併
2 小時 28 分鐘
30 天內合併 PR
19

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

nodejs/docker-node 的其他 Issue

查看 nodejs/docker-node 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。