mirror of https://github.com/docker/docs.git
parent
fa1b47d5d1
commit
e22150bd43
|
@ -328,8 +328,7 @@ Keep reading for more information and use cases for each of these methods.
|
|||
|
||||
#### Publish a service's ports using the routing mesh
|
||||
|
||||
To publish a service's ports externally to the swarm, use the `--publish
|
||||
<TARGET-PORT>:<SERVICE-PORT>` flag. The swarm
|
||||
To publish a service's ports externally to the swarm, use the `--publish <TARGET-PORT>:<SERVICE-PORT>` flag. The swarm
|
||||
makes the service accessible at the target port **on every swarm node**. If an
|
||||
external host connects to that port on any swarm node, the routing mesh routes
|
||||
it to a task. The external host does not need to know the IP addresses or
|
||||
|
|
Loading…
Reference in New Issue