User Tools

Site Tools


docker:security:least_privileged_user

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
docker:security:least_privileged_user [2020/04/18 19:18] – created peterdocker:security:least_privileged_user [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 46: Line 46:
 If you’re developing Node.js applications, you may want to consult with the official [[https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md|Docker and Node.js Best Practices]]. If you’re developing Node.js applications, you may want to consult with the official [[https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md|Docker and Node.js Best Practices]].
  
 +----
 +
 +====== Create a dedicated user and group on the image, with minimal permissions to run the application; use the same user to run this process ======
 +
 +For example, Node.js image which has a built-in node generic user:
 +
 +<file bash Dockerfile>
 +FROM node:10-alpine
 +USER node
 +CMD node index.js
 +</file>
  
docker/security/least_privileged_user.1587237509.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki