Node.js · Senior · Question 34 of 75

Why should a Node.js process run as a non-root user in a container?

Explanation

The official Node.js images include a node user. Combine this with a read-only file system and minimal images for defense in depth.

Further reading

Problem with a question

Node.js · Senior · question 34

Test yourself

Take the Node.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz