mirror of
https://github.com/docker/cli.git
synced 2025-08-01 04:26:55 +03:00
Add an orchestrator column in the docker stack ls command
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
This commit is contained in:
committed by
Mathieu Champlon
parent
8963ab993e
commit
13d0c9c695
@ -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
|
||||
|
Reference in New Issue
Block a user