Docker is for many a "simple" way of getting their app running, and once it's up, they never look back.
It isn't made particular easy for you. Honestly it's actually kind of a pain, wherein lies the problem. Doesn't help that some languages' official images are kind of bloated themselves, either.
[0] https://blog.pentesteracademy.com/abusing-sys-module-capabil...
That said, is it possible to disable superuser access entirely in a container? Can't login as root if there is no root.
If it's never executed, I don't know what vulnerabilities they were talking about.
Docker just doesn't use the provided interface by default. Which is a shame because a lot of users don't bother or don't know they should bother to configure it.
I think that's kind of a 'we don't care about security' move by docker and given its userbase that's a real problem.
Every container is one RCE vulnerability away from being compromised and escaped. if your images are distribution based, even slim ones, you’re giving the attacker a broad set of tooling out of the box.
Container runtime defaults in Docker and Kubernetes are insecure and grant attackers a lot of privilege — running as UID 0, no user namespace separation, and potentially dangerous kernel capabilities added to the container’s parent process.