Add an orchestrator column in the docker stack ls command

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
This commit is contained in:
Silvin Lubecki
2018-04-30 12:04:02 +02:00
committed by Mathieu Champlon
parent 8963ab993e
commit 13d0c9c695
8 changed files with 40 additions and 29 deletions
+8 -7
View File
@@ -39,9 +39,9 @@ The following command shows all stacks and some additional information:
```bash
$ docker stack ls
ID SERVICES
vossibility-stack 6
myapp 2
ID SERVICES ORCHESTRATOR
myapp 2 Kubernetes
vossibility-stack 6 Swarm
```
### Formatting
@@ -50,10 +50,11 @@ The formatting option (`--format`) pretty-prints stacks using a Go template.
Valid placeholders for the Go template are listed below:
| Placeholder | Description |
| ----------- | ------------------ |
| `.Name` | Stack name |
| `.Services` | Number of services |
| Placeholder | Description |
| --------------- | ------------------ |
| `.Name` | Stack name |
| `.Services` | Number of services |
| `.Orchestrator` | Orchestrator name |
When using the `--format` option, the `stack ls` command either outputs
the data exactly as the template declares or, when using the