Explain how to use/build rootless aka using the node user instead of the default root user
Nobody has claimed this yet.
- Dominant language
- Dockerfile
- Stars
- 8.6k
- Forks
- 2k
- Avg merge
- 10h 19m
- Merged PRs (30d)
- 16
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the README.md section linked in the issue, then review Docker's rootless and non-root best-practice guidance. Document how to build and use the Node.js image with the node user instead of root, including the relevant steps for typical application builds; the README should make this workflow clear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100