Lint multiple Dockerfiles using specific trusted registries

hadolint

hadolint --trusted-registry {{docker.io}} --trusted-registry {{example.com}}:{{5000}} {{path/to/Dockerfile}} {{path/to/another/Dockerfile}}

click the source code to copy install hadolint on any operating system with command-not-found.com