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

# buildkit/MaintainerDeprecated

> MAINTAINER instruction is deprecated in favor of using label.

MAINTAINER instruction is deprecated in favor of using label.

| Property | Value |
| - | - |
| Severity | Warning |
| Category | Best Practice |
| Default | Enabled |
| Auto-fix | Yes (`--fix`) |

## Description

The `MAINTAINER` instruction, used historically for specifying the author of
the Dockerfile, is deprecated. To set author metadata for an image, use the
`org.opencontainers.image.authors` OCI label instead.

## Examples

Bad:

```dockerfile theme={null}
MAINTAINER moby@example.com
```

Good:

```dockerfile theme={null}
LABEL org.opencontainers.image.authors="moby@example.com"
```

## Auto-fix

The fix replaces `MAINTAINER` with an equivalent
`org.opencontainers.image.authors` label.

```dockerfile theme={null}
# Before
MAINTAINER John Doe <john@example.com>

# After (with --fix)
LABEL org.opencontainers.image.authors="John Doe <john@example.com>"
```

## Supersedes

* [hadolint/DL4000](../hadolint/DL4000)

## Reference

* [buildkit/MaintainerDeprecated](https://docs.docker.com/reference/build-checks/maintainer-deprecated/)


## Related topics

- [BuildKit rules](/rules/buildkit/overview.md)
- [hadolint/DL4000](/rules/hadolint/DL4000.md)
- [Hadolint rules](/rules/hadolint/overview.md)
- [Configuration](/guides/configuration.md)
- [buildkit/NoEmptyContinuation](/rules/buildkit/NoEmptyContinuation.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.