Debian Codegraph @

buildkit/frontend/dockerfile/linter/docs/MaintainerDeprecated.md

raw
1 ## Output
2
3 ```text
4 MAINTAINER instruction is deprecated in favor of using label
5 ```
6
7 ## Description
8
9 The `MAINTAINER` instruction, used historically for specifying the author of
10 the Dockerfile, is deprecated. To set author metadata for an image, use the
11 `org.opencontainers.image.authors` [OCI label](https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys).
12
13 ## Examples
14
15 ❌ Bad: don't use the `MAINTAINER` instruction
16
17 ```dockerfile
18 MAINTAINER [email protected]
19 ```
20
21 ✅ Good: specify the author using the `org.opencontainers.image.authors` label
22
23 ```dockerfile
24 LABEL org.opencontainers.image.authors="[email protected]"
25 ```