mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #28029 from tealtail/27994-add-service-ls-truncate-opt
remove COMMAND column from `service ls` output. closes #27994
This commit is contained in:
commit
c16860b649
6 changed files with 17 additions and 19 deletions
|
|
@ -28,8 +28,8 @@ Options:
|
|||
|
||||
### Scale a service
|
||||
|
||||
The scale command enables you to scale one or more replicated services either up
|
||||
or down to the desired number of replicas. This command cannot be applied on
|
||||
The scale command enables you to scale one or more replicated services either up
|
||||
or down to the desired number of replicas. This command cannot be applied on
|
||||
services which are global mode. The command will return immediately, but the
|
||||
actual scaling of the service may take some time. To stop all replicas of a
|
||||
service while keeping the service active in the swarm you can set the scale to 0.
|
||||
|
|
@ -56,7 +56,7 @@ replicas.
|
|||
```bash
|
||||
$ docker service ls --filter name=frontend
|
||||
|
||||
ID NAME REPLICAS IMAGE COMMAND
|
||||
ID NAME REPLICAS IMAGE
|
||||
3pr5mlvu3fh9 frontend 15/50 nginx:alpine
|
||||
```
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ backend scaled to 3
|
|||
frontend scaled to 5
|
||||
|
||||
$ docker service ls
|
||||
ID NAME REPLICAS IMAGE COMMAND
|
||||
ID NAME REPLICAS IMAGE
|
||||
3pr5mlvu3fh9 frontend 5/5 nginx:alpine
|
||||
74nzcxxjv6fq backend 3/3 redis:3.0.6
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue