Add PORTS field for docker service ls (ingress)

This fix is related to 30232 wherw `docker service ls`
does not show `PORTS` information like `docker service ps`.

This fix adds `PORTS` fields for services that publish
ports in ingress mode.

Additional unit tests cases have been updated.

This fix is related to 30232.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 04afeb636e
Component: cli
This commit is contained in:
Yong Tang
2017-06-02 00:11:01 +00:00
committed by Tibor Vass
parent 6d717fcaf7
commit b8a1f0d4a7
@@ -137,6 +137,7 @@ Placeholder | Description
`.Mode` | Service mode (replicated, global)
`.Replicas` | Service replicas
`.Image` | Service image
`.Ports` | Service ports published in ingress mode
When using the `--format` option, the `service ls` command will either
output the data exactly as the template declares or, when using the