mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Merge pull request #3092 from wenchma/service_image
Update image format for service conf reference
This commit is contained in:
commit
f1603a3ee2
@ -59,13 +59,13 @@ optionally [dockerfile](#dockerfile) and [args](#args).
|
|||||||
args:
|
args:
|
||||||
buildno: 1
|
buildno: 1
|
||||||
|
|
||||||
If you specify `image` as well as `build`, then Compose tags the built image
|
If you specify `image` as well as `build`, then Compose names the built image
|
||||||
with the tag specified in `image`:
|
with the `webapp` and optional `tag` specified in `image`:
|
||||||
|
|
||||||
build: ./dir
|
build: ./dir
|
||||||
image: webapp
|
image: webapp:tag
|
||||||
|
|
||||||
This will result in an image tagged `webapp`, built from `./dir`.
|
This will result in an image named `webapp` and tagged `tag`, built from `./dir`.
|
||||||
|
|
||||||
> **Note**: In the [version 1 file format](#version-1), `build` is different in
|
> **Note**: In the [version 1 file format](#version-1), `build` is different in
|
||||||
> two ways:
|
> two ways:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user