> ## Documentation Index
> Fetch the complete documentation index at: https://tally.wharflab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# hadolint/DL3007

> Using latest is prone to errors if the image will ever update. Pin the version explicitly to a release tag.

Using latest is prone to errors if the image will ever update. Pin the version explicitly to a release tag.

| Property | Value         |
| -------- | ------------- |
| Severity | Warning       |
| Category | Best Practice |
| Default  | Enabled       |

## Description

You can never rely that the `latest` tag is a specific version. Pin the version explicitly to a release tag to ensure reproducible builds.

## Examples

### Problematic code

```dockerfile theme={null}
FROM debian:latest
```

### Correct code

```dockerfile theme={null}
FROM debian:jessie
```

## Reference

* [hadolint/DL3007](https://github.com/hadolint/hadolint/wiki/DL3007)
