diff --git a/engine/swarm/ingress.md b/engine/swarm/ingress.md index 376e2d670a..67117fd662 100644 --- a/engine/swarm/ingress.md +++ b/engine/swarm/ingress.md @@ -43,7 +43,7 @@ $ docker service create \ > `-p 8080:80`. The new syntax is preferred because it is easier to read and > allows more flexibility. -The `` is the port where the container listens. If you omit it, +The `` is the port where the container listens. If you omit it, a random high-numbered port is bound. The `` is the port where the swarm makes the service available. This parameter is required. @@ -90,8 +90,8 @@ $ docker service inspect --format="{{json .Endpoint.Spec.Ports}}" my-web {% endraw %} ``` -The output shows the `` from the containers and the -`` where nodes listen for requests for the service. +The output shows the `` (labeled `TargetPort`) from the containers and the +`` (labeled `PublishedPort`) where nodes listen for requests for the service. ### Publish a port for TCP only or UDP only