Introduction
Running containers as non-root means the software inside the container does not run with administrator rights. This improves security by limiting what the container can do if it is compromised.
When you want to reduce the risk of a container escaping and affecting the host system.
When running applications that do not need full administrator access inside the container.
When following security best practices for production environments.
When deploying containers in shared environments where multiple users run containers.
When compliance rules require least privilege access for running software.