Docker and CI/CD · Junior · Question 67 of 75
Which user does a container's process run as by default?
- ✓Correct answer: root, unless the image sets another
USER - 2the user who ran the
docker runcommand - 3a random user created on every start
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.