Get Demo
Running containers with ‘root’ user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a ‘USER’ statement to the Dockerfile.