remove COMMAND column from service ls output. closes #27994

Signed-off-by: Alicia Lauerman <alicia@eta.im>
This commit is contained in:
Alicia Lauerman 2016-11-03 14:20:53 -04:00 committed by Tibor Vass
parent b7c6c84fdd
commit 5ad8af8fd1
5 changed files with 14 additions and 14 deletions

View File

@ -74,7 +74,7 @@ $ docker service create --name redis redis:3.0.6
dmu1ept4cxcfe8k8lhtux3ro3 dmu1ept4cxcfe8k8lhtux3ro3
$ docker service ls $ docker service ls
ID NAME REPLICAS IMAGE COMMAND ID NAME REPLICAS IMAGE
dmu1ept4cxcf redis 1/1 redis:3.0.6 dmu1ept4cxcf redis 1/1 redis:3.0.6
``` ```
@ -98,7 +98,7 @@ number of `RUNNING` tasks is `3`:
```bash ```bash
$ docker service ls $ docker service ls
ID NAME REPLICAS IMAGE COMMAND ID NAME REPLICAS IMAGE
4cdgfyky7ozw redis 3/5 redis:3.0.7 4cdgfyky7ozw redis 3/5 redis:3.0.7
``` ```
@ -107,7 +107,7 @@ equal to the desired number:
```bash ```bash
$ docker service ls $ docker service ls
ID NAME REPLICAS IMAGE COMMAND ID NAME REPLICAS IMAGE
4cdgfyky7ozw redis 5/5 redis:3.0.7 4cdgfyky7ozw redis 5/5 redis:3.0.7
``` ```

View File

@ -46,7 +46,7 @@ For example, given the following service;
```bash ```bash
$ docker service ls $ docker service ls
ID NAME REPLICAS IMAGE COMMAND ID NAME REPLICAS IMAGE
dmu1ept4cxcf redis 3/3 redis:3.0.6 dmu1ept4cxcf redis 3/3 redis:3.0.6
``` ```

View File

@ -34,7 +34,7 @@ swarm.
On a manager node: On a manager node:
```bash ```bash
ID NAME REPLICAS IMAGE COMMAND ID NAME REPLICAS IMAGE
c8wgl7q4ndfd frontend 5/5 nginx:alpine c8wgl7q4ndfd frontend 5/5 nginx:alpine
dmu1ept4cxcf redis 3/3 redis:3.0.6 dmu1ept4cxcf redis 3/3 redis:3.0.6
``` ```
@ -60,7 +60,7 @@ The `id` filter matches all or part of a service's id.
```bash ```bash
$ docker service ls -f "id=0bcjw" $ docker service ls -f "id=0bcjw"
ID NAME REPLICAS IMAGE COMMAND ID NAME REPLICAS IMAGE
0bcjwfh8ychr redis 1/1 redis:3.0.6 0bcjwfh8ychr redis 1/1 redis:3.0.6
``` ```
@ -74,7 +74,7 @@ its value:
```bash ```bash
$ docker service ls --filter label=project $ docker service ls --filter label=project
ID NAME REPLICAS IMAGE COMMAND ID NAME REPLICAS IMAGE
01sl1rp6nj5u frontend2 1/1 nginx:alpine 01sl1rp6nj5u frontend2 1/1 nginx:alpine
36xvvwwauej0 frontend 5/5 nginx:alpine 36xvvwwauej0 frontend 5/5 nginx:alpine
74nzcxxjv6fq backend 3/3 redis:3.0.6 74nzcxxjv6fq backend 3/3 redis:3.0.6
@ -85,7 +85,7 @@ The following filter matches only services with the `project` label with the
```bash ```bash
$ docker service ls --filter label=project=project-a $ docker service ls --filter label=project=project-a
ID NAME REPLICAS IMAGE COMMAND ID NAME REPLICAS IMAGE
36xvvwwauej0 frontend 5/5 nginx:alpine 36xvvwwauej0 frontend 5/5 nginx:alpine
74nzcxxjv6fq backend 3/3 redis:3.0.6 74nzcxxjv6fq backend 3/3 redis:3.0.6
``` ```
@ -99,7 +99,7 @@ The following filter matches services with a name containing `redis`.
```bash ```bash
$ docker service ls --filter name=redis $ docker service ls --filter name=redis
ID NAME REPLICAS IMAGE COMMAND ID NAME REPLICAS IMAGE
0bcjwfh8ychr redis 1/1 redis:3.0.6 0bcjwfh8ychr redis 1/1 redis:3.0.6
``` ```

View File

@ -36,7 +36,7 @@ For example, to remove the redis service:
$ docker service rm redis $ docker service rm redis
redis redis
$ docker service ls $ docker service ls
ID NAME SCALE IMAGE COMMAND ID NAME SCALE IMAGE
``` ```
> **Warning**: Unlike `docker rm`, this command does not ask for confirmation > **Warning**: Unlike `docker rm`, this command does not ask for confirmation

View File

@ -56,7 +56,7 @@ replicas.
```bash ```bash
$ docker service ls --filter name=frontend $ docker service ls --filter name=frontend
ID NAME REPLICAS IMAGE COMMAND ID NAME REPLICAS IMAGE
3pr5mlvu3fh9 frontend 15/50 nginx:alpine 3pr5mlvu3fh9 frontend 15/50 nginx:alpine
``` ```
@ -80,7 +80,7 @@ backend scaled to 3
frontend scaled to 5 frontend scaled to 5
$ docker service ls $ docker service ls
ID NAME REPLICAS IMAGE COMMAND ID NAME REPLICAS IMAGE
3pr5mlvu3fh9 frontend 5/5 nginx:alpine 3pr5mlvu3fh9 frontend 5/5 nginx:alpine
74nzcxxjv6fq backend 3/3 redis:3.0.6 74nzcxxjv6fq backend 3/3 redis:3.0.6
``` ```