Loading...
Loading...
Run Hadolint to lint Dockerfiles for best practices and security issues. Validates against Docker and ShellCheck rules.
npx skill4agent add vchirrav/owasp-secure-coding-md container-scan-hadolintbrew install hadolinthadolint --versionhadolint --format json <Dockerfile> > hadolint-results.jsonhadolint --format json Dockerfile Dockerfile.devhadolint --ignore DL3008 --ignore DL3009 --format json Dockerfilehadolint --failure-threshold warning --format json Dockerfile| # | Severity | Rule | Line | Finding | Remediation |
|---|----------|------|------|---------|-------------|| Rule | Description |
|---|---|
| DL3000 | Use absolute WORKDIR |
| DL3002 | Do not switch to root user |
| DL3003 | Use WORKDIR instead of |
| DL3006 | Always tag image version (no |
| DL3007 | Use specific package versions |
| DL3008 | Pin versions in |
| DL3009 | Delete apt lists after install |
| DL3018 | Pin versions in |
| DL3025 | Use JSON form for CMD |
| DL4006 | Set SHELL with pipefail |
| SC2086 | ShellCheck: double quote to prevent globbing |