docs/content/reference
Etienne Guerlain 1278c5b4c8
Update example in the Compose Build Specification (additional_contexts) to ease it's understanding (#22140)
There might by a slight error when illustrating the
`additional_contexts` attribute. The compose file declares two services
with the same name. It might induce misunderstanding, especially since
the second service's image uses the first one to build upon.

## Description

I replaced the key defining the second service of the compose file used
to illustrate the `additional_contexts` attribute, since the key `base`
is used twice. Of course, any better replacement could be used, instead
of `my-service`.

It is invalid to use the same key twice (the error: `mapping key "base"
already defined at line 2` is expected on `docker compose up`), and it
does harm the understanding of the illustrated point of building a
service's image using another one to share layers.

## Reviews

<!-- Notes for reviewers here -->
<!-- List applicable reviews (optionally @tag reviewers) -->

- [ ] Technical review
- [ ] Editorial review
- [ ] Product review
2025-03-03 09:46:09 +00:00
..
api Merge pull request #22124 from gurleensethi-docker/feat/pat_expiration_doc 2025-02-27 16:49:17 -05:00
cli Merge pull request #22094 from craig-osterhout/init-debug-callout 2025-02-25 08:01:08 -08:00
compose-file Update example in the Compose Build Specification (additional_contexts) to ease it's understanding (#22140) 2025-03-03 09:46:09 +00:00
samples samples: add redirect 2024-12-02 13:41:38 -08:00
_index.md hugo: add main nav icons and fix mobile rendering 2024-09-16 17:50:29 +02:00
glossary.md remove glossary (#22112) 2025-02-27 08:58:33 -08:00