Skip to content

Commit

Permalink
update the tags example to match the list definition
Browse files Browse the repository at this point in the history
Co-authored-by: Ulysses Souza <ulysses.souza@docker.com>
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
  • Loading branch information
glours and ulyssessouza committed May 4, 2022
1 parent 6b017e7 commit 77d99aa
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build.md
Expand Up @@ -384,17 +384,15 @@ Such grant must be explicit within service specification as [secrets](spec.md#se

### tags

`tags` defines a list of tag mappings that MUST be associated to the build image.
`tags` defines a list of tag mappings that MUST be associated to the build image. This list come in addition of
the `image` [property defined in the service section](spec.md#image)

```yml
tags:
"myimage:mytag"
- "myimage:mytag"
"registry/username/myrepos:my-other-tag"
```

Compose implementations MUST create matching entry with the IP address and hostname in the container's network
configuration, which means for Linux `/etc/hosts` will get extra lines:

## Implementations

* [docker-compose](https://docs.docker.com/compose)
Expand Down

0 comments on commit 77d99aa

Please sign in to comment.