mirror of https://github.com/docker/docs.git
Fix published&target description in ports section (#3016)
This commit is contained in:
parent
50e9e49552
commit
903df7ebfc
|
@ -926,16 +926,16 @@ port (a random host port will be chosen).
|
||||||
The long form syntax allows the configuration of additional fields that can't be
|
The long form syntax allows the configuration of additional fields that can't be
|
||||||
expressed in the short form.
|
expressed in the short form.
|
||||||
|
|
||||||
- `target`: the publicly exposed port
|
- `target`: the port inside the container
|
||||||
- `published`: the port inside the container
|
- `published`: the publicly exposed port
|
||||||
- `protocol`: the port protocol (`tcp` or `udp`)
|
- `protocol`: the port protocol (`tcp` or `udp`)
|
||||||
- `mode`: `host` for publishing a host port on each node, or `ingress` for a swarm
|
- `mode`: `host` for publishing a host port on each node, or `ingress` for a swarm
|
||||||
mode port which will be load balanced.
|
mode port which will be load balanced.
|
||||||
|
|
||||||
```none
|
```none
|
||||||
ports:
|
ports:
|
||||||
- target: 8080
|
- target: 80
|
||||||
published: 80
|
published: 8080
|
||||||
protocol: tcp
|
protocol: tcp
|
||||||
mode: host
|
mode: host
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue