Update stack-yaml-reference.md (#4978)

This commit is contained in:
Wang Jie 2017-10-21 01:43:32 +08:00 committed by Misty Stanley-Jones
parent 0c5e5622f4
commit 67bc52ec18
1 changed files with 4 additions and 4 deletions

View File

@ -152,7 +152,7 @@ expose:
```
## extra_hosts
Add hostname mappings. Use the same values as the docker client `--add-host` parameter.
Add hostname mappings. Uses the same values as the docker client `--add-host` parameter.
```yml
extra_hosts:
@ -289,9 +289,9 @@ 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).
- 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: