docker:security:least_privileged_user
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docker:security:least_privileged_user [2020/04/18 19:18] – created peter | docker: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, | If you’re developing Node.js applications, | ||
+ | ---- | ||
+ | |||
+ | ====== Create a dedicated user and group on the image, with minimal permissions to run the application; | ||
+ | |||
+ | For example, Node.js image which has a built-in node generic user: | ||
+ | |||
+ | <file bash Dockerfile> | ||
+ | FROM node: | ||
+ | USER node | ||
+ | CMD node index.js | ||
+ | </ | ||
docker/security/least_privileged_user.1587237509.txt.gz · Last modified: 2020/07/15 09:30 (external edit)