Document network_aliases config

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2016-02-12 17:17:31 -08:00
parent 633e349ab9
commit 7801cfc5d1
1 changed files with 19 additions and 1 deletions

View File

@ -451,9 +451,27 @@ id.
net: "none"
net: "container:[service name or container name/id]"
### network_aliases
> [Version 2 file format](#version-2) only.
Alias names for this service on each joined network. All networks referenced
here must also appear under the `networks` key.
networks:
- some-network
- other-network
network_aliases:
some-network:
- alias1
- alias3
other-network:
- alias2
- alias4
### network_mode
> [Version 2 file format](#version-1) only. In version 1, use [net](#net).
> [Version 2 file format](#version-2) only. In version 1, use [net](#net).
Network mode. Use the same values as the docker client `--net` parameter, plus
the special form `service:[service name]`.