What are common Docker-related findings in a security audit?
BeginnerProductionImage Security & Hardening
Answer
Containers as root, --privileged, docker.sock mounts, exposed 2375, secrets in ENV, latest tags, unpinned bases, no resource limits, no image scanning, ports bound to 0.0.0.0, outdated engine, missing log rotation, and images with shells plus curl/wget. A short checklist in CI catches most of them.
More on Image Security & Hardening
Why should containers not run as root, and how do you enforce it?BeginnerWhat is a distroless image and what are the trade-offs?BeginnerHow do you scan an image with Trivy and fail a CI build on serious findings?BeginnerHow do you manage Trivy false positives and accepted risks?IntermediateWhich `docker run` flags make up a hardened runtime baseline?BeginnerWhat does `no-new-privileges` protect against?Beginner