1 Answers
Hi Peter,
You can specify the user that you would like to run your processes as inside the Dockerfile. The USER instruction sets the user name (or UID) and optionally the user group (or GID) to use when running the image. From the documentation, it sounds like you don’t have to create the user first.
https://docs.docker.com/engine/reference/builder/#user
And there is also a great talk on Container Security from AWS here:
https://www.youtube.com/watch?v=Cp4rdlsQORo
For the exam you just need a general understanding of containers how to secure them at a high level.
hope that helps
Faye