Explain how to use/build rootless aka using the node user instead of the default root user
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Dockerfile
- Star
- 8.6k
- Fork
- 2k
- Merge trung bình
- 10 giờ 19 phút
- Pull request đã merge (30 ngày)
- 16
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với phần README.md được liên kết trong issue, sau đó xem lại hướng dẫn về các best practice của Docker đối với rootless và non-root. Tài liệu hóa cách build và sử dụng image Node.js với người dùng node thay vì root, bao gồm các bước liên quan cho những lần build ứng dụng điển hình; README phải làm rõ workflow này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- docker
- Lĩnh vực
- documentation
- Loại issue
- Tài liệu
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100