Category: Docker, yaml

A smarter Dockerfile linter that helps you build best practice Docker images. For the latest release of hadolint go through this link: Windows OS Installation: Mac or Linux OS Installation: If you don’t have scoop or brew installed go through these links: docker pull hadolint/hadolint:latest-debiandocker pull hadolint/hadolint:latest-alpinedocker run --rm -i hadolint/hadolint < ./Dockerfile

Pin the version explicitly to a release tag For more information about this, you can go through this link: View Instructions in JSON format:For an attractive view, you can also download a hadolint wrapper and use it.

When using this Docker image you’ll notice that you can’t simply pass an option and use stdin We can also use the hadolint configuration file for ignoring the rules and also we can attach trusted repositories in it.

Related Articles