> For the complete documentation index, see [llms.txt](https://turme.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://turme.gitbook.io/blog/container-security/docker-image-security.md).

# Docker Image Security

## Docker File Linter

A Dockerfile linter is a tool that checks your Dockerfile for errors and best practices. It can help you catch issues before you build your image and deploy it to production.

`dockerfilelinter -f Dockerfile`<br>

`dockerfilelint Dockerfile`<br>

`dockerlint -f Dockerfile`\
\
`hadolint Dockerfile`

and after that, it will give you the errors you need to fix based on the best practices.&#x20;
