From e3ddcf6c05766856e3515f7b0630bd9ffbd6178c Mon Sep 17 00:00:00 2001 From: Wang Jie Date: Wed, 21 Jun 2017 02:55:53 +0800 Subject: [PATCH] Update stack-yaml-reference.md (#3653) --- docker-cloud/apps/stack-yaml-reference.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docker-cloud/apps/stack-yaml-reference.md b/docker-cloud/apps/stack-yaml-reference.md index 59bfd584c3..a7fce027da 100644 --- a/docker-cloud/apps/stack-yaml-reference.md +++ b/docker-cloud/apps/stack-yaml-reference.md @@ -32,9 +32,9 @@ redis: image: redis ``` -Each key defined in `docker-cloud.yml` creates a service with that name in Docker Cloud. In the example above, three services are created: `lb`, `web` and `redis`. Each service is a dictionary whose possible keys are documented below. +Each key defined in `docker-cloud.yml` creates a service with that name in Docker Cloud. In the example above, three services are created: `lb`, `web`, and `redis`. Each service is a dictionary whose possible keys are documented below. - The `image` key is mandatory. Other keys are optional and are analogous to their [Docker Cloud Service API](/apidocs/docker-cloud.md#create-a-new-service) counterparts. +The `image` key is mandatory. Other keys are optional and are analogous to their [Docker Cloud Service API](/apidocs/docker-cloud.md#create-a-new-service) counterparts. ## image (required) @@ -287,7 +287,11 @@ volumes: ``` ## volumes_from -Mount all of the volumes from another service by specifying a service unique name. If the target service belongs to this stack its service unique name is its service name. If the target service does not belong to any stack its service unique name is its service name. If the target service belongs to another stack its service unique name is its service name plus the service stack name, separated by ".". Learn more [here](volumes.md). +Mount all of the volumes from another service by specifying a service unique name. + +- If the target service belongs to this stack its service unique name is its service name. +- If the target service does not belong to any stack its service unique name is its service name. +- If the target service belongs to another stack its service unique name is its service name plus the service stack name, separated by ".". Learn more [here](volumes.md). ```yml volumes_from: