Correctness
Rules that catch Docker build errors
3
Security Rules
Run All Correctness Rules
pathfinder scan --ruleset cpf/docker/correctnessRules
Invalid Port Number
highDetects EXPOSE instructions with invalid port numbers. Valid ports are 1-65535.
dockercorrectnessportsvalidation
Updated 2024-12-19
Multiple CMD Instructions
mediumDetects multiple CMD instructions in a Dockerfile. Only the last one takes effect, making earlier ones misleading.
dockercorrectnesscmddockerfile
Updated 2024-12-19
Multiple ENTRYPOINT Instructions
mediumDetects multiple ENTRYPOINT instructions. Only the last one takes effect, making earlier ones misleading.
dockercorrectnessentrypointdockerfile
Updated 2024-12-19