News for hackers. Stuff that matters.
Re:Lessons from Building a Node App in Docker by antihero on Friday April 22, 2016 @05:15AM (#11547944)
What exactly do you achieve with this? It's running in a container. What's a hacker to do? Screw up the app in the container, which they could do with the app user anyway?
Re:Lessons from Building a Node App in Docker by jdleesmiller on Friday April 22, 2016 @05:38AM (#11548025)
(Author here.) So far as I can tell, it's not that there are known, specific things that one can do to break out of a docker container as root; it's just that the space of possible things you can do is larger, so there is more surface area for you to attack. So, following the principle of least privilege [1], you should avoid running as root, if you reasonably can, and in most cases it's not that hard to do.

[1] https://en.wikipedia.org/wiki/Principle_of_least_privilege

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.

Re:Lessons from Building a Node App in Docker by xorcist on Friday April 22, 2016 @09:14AM (#11548839)
Docker is very clear about this in their documentation: Don't run applications as root.