Re:Lessons from Building a Node App in Docker
by koolba on Friday April 22, 2016 @05:38AM
(#11548024)
Running as root within a container means your still running as root on the host as well for the underlying process. If there's a security issue with containerization, you'll end up with root on the host.
Running as a non-root user in the container is an extra level of protection and follows the principle of least privilege.
Running as a non-root user in the container is an extra level of protection and follows the principle of least privilege.