Dockerfile linter. More information: https://github.com/hadolint/hadolint.
hadolint path/to/Dockerfile
hadolint --format json path/to/Dockerfile
hadolint --format tty|json|checkstyle|codeclimate|codacy path/to/Dockerfile
hadolint --ignore DL3006 --ignore DL3008 path/to/Dockerfile
hadolint --trusted-registry docker.io --trusted-registry example.com:5000 path/to/Dockerfile1 path/to/Dockerfile2 ...