In this lesson, you will learn how to use the USER instruction to create a non-privileged user. Rather than using root, we can use a non-privileged user to configure and run an application.
Simple Non Privileged Container
Step 1: Setup your environment:
mkdirnon-privileged-user
cd non-privileged-user
Step 2: Create the Dockerfile:
viDockerfile
Step 3: Creates a CentOS image that uses cloud_user as a non-privileged user