6 ms·
Docker is the industry-accepted standard to run web applications as root.
by hmans 11y ago
Docker is the industry-accepted standard to run web applications as root.
- davexunit 11y agoIt's unfortunate that Docker still doesn't use user namespaces.
- justincormack 11y agoNo, they are new and have had many security issues. Just run your containers not as root, you can use capabilities if you like.
- davexunit 11y agoBut certain namespaces cannot be created without CAP_SYS_ADMIN. Sure, you can drop privileges later, but a privilege escalation exploit in the container gives the attacker root access outside of that container, too. Sure, user namespaces have had issues, but they seem a hell of a lot safer than no isolation at all. Furthermore, user namespaces allow unprivileged users to create containers, too, which is particularly exciting.