1
0
mirror of https://github.com/docker/cli.git synced 2026-01-19 21:41:31 +03:00

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-02-07 22:51:33 -08:00
committed by Tibor Vass
parent 6d717fcaf7
commit b8a1f0d4a7

View File

@@ -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