This is Docker image for the hadolint.
Default images include only hadolint static binary. All supported tags have also Debian based image alternative with -debian suffinx in tags.
scratch based tiny images:
hadolint/hadolint:latest tracks master branchhadolint/hadolint:VERSION refers release version, eg. v1.9.0hadolint/hadolint:EXTENDED_VERSION refers to the same version as hadolint --version with short git sha, eg. v1.9.0-0-g4c4881adebian based images:
hadolint/hadolint:latest-debian tracks master branchhadolint/hadolint:VERSION-debian refers release version, eg. v1.9.0-debianhadolint/hadolint:EXTENDED_VERSION-debian refers to the same version as hadolint --version with short git sha, eg. v1.9.0-0-g4c4881a-debianCheck out Docker Hub for available tags.
To use this image, pull from Docker Hub, run the following command:
docker pull hadolint/hadolint
Verify the install
docker run --rm hadolint/hadolint hadolint --version
Haskell Dockerfile Linter v1.9.0-0-g4c4881a
or use a particular version number:
docker run --rm hadolint/hadolint:v1.9.0 hadolint --version
Haskell Dockerfile Linter v1.9.0-0-g4c4881a
Lint your Dockerfile:
docker run --rm -i hadolint/hadolint < Dockerfile
To exclude specific rules:
docker run --rm -i hadolint/hadolint hadolint \
--ignore DL3003 \
--ignore DL3006 \
- < Dockerfile
Content type
Image
Digest
Size
3.4 MB
Last updated
over 7 years ago
docker pull zemanlx/hadolint