OWASP Docker Security Cheat Sheet
Official docs outline
14 sections- Rule 0 Keep Host and Docker Up to Date
Patching the kernel, Docker engine and runtime.
- Rule 1 Do Not Expose the Docker Socket
Risks of mounting docker.sock into containers.
- Rule 2 Set a User
Running containers as non-root.
- Rule 3 Limit Capabilities
Dropping Linux capabilities.
- Rule 4 Prevent Privilege Escalation
no-new-privileges and setuid risks.
- Rule 5 Inter-Container Connectivity
Network isolation between containers.
- Rule 6 Use Linux Security Modules
Seccomp, AppArmor and SELinux profiles.
- Rule 7 Limit Resources
Memory, CPU and process limits.
- Rule 8 Read-Only Filesystem
Read-only root filesystems and volumes.
- Rule 9 Container Scanning
Image vulnerability scanning in CI/CD.
- Rule 10 Daemon Logging Level
Keeping daemon logs useful.
- Rule 11 Rootless Mode
Running the daemon without root.
- Rule 12 Docker Secrets
Handling secrets without baking them into images.
- Rule 13 Supply Chain Security
Trusted base images, signing and provenance.
Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.
More in OWASP
All 33- OWASP CI/CD and Supply Chain Cheat Sheets
- OWASP Cryptographic Storage Cheat Sheets
- OWASP CSRF Prevention Cheat Sheet
-
OWASP Dependency-Check
- OWASP Deserialization Cheat Sheet
- OWASP Django Security Cheat Sheets
- OWASP File Upload Cheat Sheet
- OWASP GraphQL Cheat Sheet
- OWASP Injection Prevention Cheat Sheets
- OWASP Input Validation Cheat Sheets
- OWASP Kubernetes Security Cheat Sheet
- OWASP Language and Framework Cheat Sheets