# 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;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://turme.gitbook.io/blog/container-security/docker-image-security.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
