mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
## Summary Changed `build: alpine` to `build: ./alpine` in extends examples to clarify it's a directory path, not an image name. ## Changes - Updated two examples in extends documentation to use `build: ./alpine` instead of `build: alpine` to avoid confusion with the Alpine Docker image Fixes #24158 --- 🤖 Generated with [cagent](https://github.com/docker/cagent) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
628cfb2024
commit
3c0930598d
@@ -66,7 +66,7 @@ To include the service `webapp` in the final project when extending services fro
|
||||
```yaml
|
||||
services:
|
||||
web:
|
||||
build: alpine
|
||||
build: ./alpine
|
||||
command: echo
|
||||
extends:
|
||||
file: common-services.yml
|
||||
@@ -86,7 +86,7 @@ If you define services in the same Compose file and extend one service from anot
|
||||
```yaml
|
||||
services:
|
||||
web:
|
||||
build: alpine
|
||||
build: ./alpine
|
||||
extends: webapp
|
||||
webapp:
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user