From d30e1955a986cb30a203baeb6ca00f41b27b1091 Mon Sep 17 00:00:00 2001 From: Renato Piccoli Date: Wed, 27 Dec 2017 20:25:20 +0100 Subject: [PATCH] Confusion between `--publish` and `published` (#5614) --- engine/swarm/ingress.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/swarm/ingress.md b/engine/swarm/ingress.md index 028d2b120c..47034afb54 100644 --- a/engine/swarm/ingress.md +++ b/engine/swarm/ingress.md @@ -26,10 +26,10 @@ service. ## Publish a port for a service 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 -routing mesh. If you leave off the `publish` port, a random high-numbered port is -bound for each service task. You will need to inspect the task to determine the -port. +is used to specify the port inside the container, and `published` is used to +specify the port to bind on the routing mesh. If you leave off the `published` +port, a random high-numbered port is bound for each service task. You will +need to inspect the task to determine the port. ```bash $ docker service create \