mirror of https://github.com/docker/docs.git
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 |
||
---|---|---|
.. | ||
_index.md | ||
build.md | ||
configs.md | ||
deploy.md | ||
develop.md | ||
extension.md | ||
fragments.md | ||
include.md | ||
interpolation.md | ||
legacy-versions.md | ||
merge.md | ||
networks.md | ||
profiles.md | ||
secrets.md | ||
services.md | ||
version-and-name.md | ||
volumes.md |