Hacker News new | ask | show | jobs
by Cthulhu_ 2012 days ago
It does allow you to exit the boundaries of the application though, and e.g. extract the application's database.

That said, is it possible to disable superuser access entirely in a container? Can't login as root if there is no root.

3 comments

Docker has a user namespacing feature which can be used to harden container images and also a newer way to run rootless altogether - https://docs.docker.com/engine/security/rootless/
If the application user has access to the database, it doesn't matter if you get access to root or not.