Skip to content

Commit

Permalink
Swap "LABEL maintainer" for the OCI pre-defined "org.opencontainers.i…
Browse files Browse the repository at this point in the history
…mage.authors"

https://github.com/opencontainers/image-spec/blob/v1.0.1/annotations.md#pre-defined-annotation-keys

Signed-off-by: Tianon Gravi <admwiggin@gmail.com>
  • Loading branch information
tianon committed May 4, 2021
1 parent cde06fb commit 782192a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/reference/builder.md
Expand Up @@ -963,7 +963,7 @@ easily, for example with `docker inspect`. To set a label corresponding to the
`MAINTAINER` field you could use:

```dockerfile
LABEL maintainer="SvenDowideit@home.org.au"
LABEL org.opencontainers.image.authors="SvenDowideit@home.org.au"
```

This will then be visible from `docker inspect` with the other labels.
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/commandline/pull.md
Expand Up @@ -160,7 +160,7 @@ Digest can also be used in the `FROM` of a Dockerfile, for example:

```dockerfile
FROM ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
LABEL maintainer="some maintainer <maintainer@example.com>"
LABEL org.opencontainers.image.authors="some maintainer <maintainer@example.com>"
```

> **Note**
Expand Down
2 changes: 1 addition & 1 deletion man/src/image/pull.md
Expand Up @@ -111,7 +111,7 @@ pull the above image by digest, run the following command:
Digest can also be used in the `FROM` of a Dockerfile, for example:

FROM ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
LABEL maintainer="some maintainer <maintainer@example.com>"
LABEL org.opencontainers.image.authors="some maintainer <maintainer@example.com>"

> **Note**: Using this feature "pins" an image to a specific version in time.
> Docker will therefore not pull updated versions of an image, which may include
Expand Down

0 comments on commit 782192a

Please sign in to comment.