Skip to content

All Rules

The Docker lexicon provides 7 rules: 1 lint rule and 6 post-synth checks.

IDSeverityCategoryDescription
DKRS001warningcorrectnessNo Latest Tag

Post-synth checks validate the serialized output after the build pipeline completes.

IDDescription
DKRD001Service uses :latest or untagged image — specify an explicit version tag
DKRD002Named volume is declared but not mounted by any service
DKRD003Service exposes SSH port (22) externally — this is a security risk
DKRD010apt-get install without —no-install-recommends adds unnecessary packages
DKRD011Prefer COPY over ADD when not fetching URLs or extracting archives
DKRD012Dockerfile has no USER instruction — container runs as root