mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix inconsistency for
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
This commit is contained in:
parent
bce494f7a2
commit
6d50737355
2 changed files with 3 additions and 5 deletions
|
@ -28,7 +28,7 @@ Commands:
|
||||||
inspect Display detailed information on one or more services
|
inspect Display detailed information on one or more services
|
||||||
logs Fetch the logs of a service
|
logs Fetch the logs of a service
|
||||||
ls List services
|
ls List services
|
||||||
ps List the tasks of a service
|
ps List the tasks of one or more services
|
||||||
rm Remove one or more services
|
rm Remove one or more services
|
||||||
scale Scale one or multiple replicated services
|
scale Scale one or multiple replicated services
|
||||||
update Update a service
|
update Update a service
|
||||||
|
|
|
@ -17,7 +17,7 @@ aliases: ["/engine/reference/commandline/service_tasks/"]
|
||||||
# service ps
|
# service ps
|
||||||
|
|
||||||
```Markdown
|
```Markdown
|
||||||
Usage: docker service ps [OPTIONS] SERVICE
|
Usage: docker service ps [OPTIONS] SERVICE [SERVICE...]
|
||||||
|
|
||||||
List the tasks of one or more services
|
List the tasks of one or more services
|
||||||
|
|
||||||
|
@ -147,12 +147,10 @@ ID NAME IMAGE NODE DESIRED STATE CURRENT STATE
|
||||||
8eaxrb2fqpbn redis.10 redis:3.0.6 manager1 Running Running 8 seconds
|
8eaxrb2fqpbn redis.10 redis:3.0.6 manager1 Running Running 8 seconds
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### desired-state
|
#### desired-state
|
||||||
|
|
||||||
The `desired-state` filter can take the values `running`, `shutdown`, and `accepted`.
|
The `desired-state` filter can take the values `running`, `shutdown`, and `accepted`.
|
||||||
|
|
||||||
|
|
||||||
### Formatting
|
### Formatting
|
||||||
|
|
||||||
The formatting options (`--format`) pretty-prints tasks output
|
The formatting options (`--format`) pretty-prints tasks output
|
||||||
|
@ -176,7 +174,7 @@ output the data exactly as the template declares or, when using the
|
||||||
`table` directive, includes column headers as well.
|
`table` directive, includes column headers as well.
|
||||||
|
|
||||||
The following example uses a template without headers and outputs the
|
The following example uses a template without headers and outputs the
|
||||||
`ID` and `Driver` entries separated by a colon for all tasks:
|
`Name` and `Image` entries separated by a colon for all tasks:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker service ps --format "{{.Name}}: {{.Image}}" top
|
$ docker service ps --format "{{.Name}}: {{.Image}}" top
|
||||||
|
|
Loading…
Reference in a new issue