Fix example labels (#5419)

This commit is contained in:
Misty Stanley-Jones 2017-11-30 09:51:49 -08:00 committed by GitHub
parent 22bae65cce
commit 50e775a4a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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 `<TARGET-PORT>` is the port where the container listens. If you omit it,
The `<CONTAINER-PORT>` is the port where the container listens. If you omit it,
a random high-numbered port is bound.
The `<PUBLISHED-PORT>` 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 `<CONTAINER-PORT>` from the containers and the
`<PUBLISHED-PORT>` where nodes listen for requests for the service.
The output shows the `<CONTAINER-PORT>` (labeled `TargetPort`) from the containers and the
`<PUBLISHED-PORT>` (labeled `PublishedPort`) where nodes listen for requests for the service.
### Publish a port for TCP only or UDP only