Run a container process with only the permissions it needs. This reduces the impact of a compromised container, especially when the runtime otherwise defaults to root. section 3.2.1
Apply the principle when building and running container images:
- Create a non-privileged user in the Dockerfile. section 3.2.1
- Use that user for the entry point process instead of running the application as root. section 3.2.1
- Account for runtime defaults: Docker uses root by default, while Podman uses non-root by default and also supports rootful mode. section 3.2.1
Container entry point
A containerized application that needs no administrative access runs its entry point under a newly created non-privileged user rather than the default root user. section 3.2.1





















