mirror of https://github.com/docker/docs.git
Update stack-yaml-reference.md (#4978)
This commit is contained in:
parent
0c5e5622f4
commit
67bc52ec18
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue