add port PublishMode to service inspect --pretty output

Signed-off-by: Dong Chen <dongluo.chen@docker.com>
This commit is contained in:
Dong Chen 2017-01-05 11:21:22 -08:00 committed by Tibor Vass
parent 20954b356b
commit 3988259bcb

View File

@ -125,15 +125,18 @@ Service Mode: REPLICATED
Placement: Placement:
UpdateConfig: UpdateConfig:
Parallelism: 0 Parallelism: 0
On failure: pause
Max failure ratio: 0
ContainerSpec: ContainerSpec:
Image: nginx:alpine Image: nginx:alpine
Resources: Resources:
Networks: net1
Endpoint Mode: vip Endpoint Mode: vip
Ports: Ports:
Name =
Protocol = tcp
TargetPort = 443
PublishedPort = 4443 PublishedPort = 4443
Protocol = tcp
TargetPort = 443
PublishMode = ingress
``` ```
You can also use `--format pretty` for the same effect. You can also use `--format pretty` for the same effect.