Docker and CI/CD · Junior · Question 67 of 75

Which user does a container's process run as by default?

Explanation

Root in a container is limited but still risky if it escapes. Official Node images include a node user; switch to it with USER node.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 67

Test yourself

Take the Docker and CI/CD · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz