Confusion between `--publish` and `published` (#5614)

This commit is contained in:
Renato Piccoli 2017-12-27 20:25:20 +01:00 committed by Misty Stanley-Jones
parent c63fe4bf8a
commit d30e1955a9
1 changed files with 4 additions and 4 deletions

View File

@ -26,10 +26,10 @@ service.
## Publish a port for a service ## Publish a port for a service
Use the `--publish` flag to publish a port when you create a service. `target` Use the `--publish` flag to publish a port when you create a service. `target`
is the port inside the container, and `publish` is the port to bind on the is used to specify the port inside the container, and `published` is used to
routing mesh. If you leave off the `publish` port, a random high-numbered port is specify the port to bind on the routing mesh. If you leave off the `published`
bound for each service task. You will need to inspect the task to determine the port, a random high-numbered port is bound for each service task. You will
port. need to inspect the task to determine the port.
```bash ```bash
$ docker service create \ $ docker service create \