id and name filter in service ls is the prefix not a part

Signed-off-by: Lifubang <lifubang@acmcoder.com>
This commit is contained in:
Lifubang 2018-10-16 15:56:29 +08:00 committed by Sebastiaan van Stijn
parent dd3ba7396d
commit 60af715d65
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 5 additions and 3 deletions

View File

@ -62,7 +62,9 @@ The currently supported filters are:
#### id
The `id` filter matches all or part of a service's ID.
The `id` filter matches all or the prefix of a service's ID.
The following filter matches services with an ID starting with `0bcjw`:
```console
$ docker service ls -f "id=0bcjw"
@ -110,9 +112,9 @@ w7y0v2yrn620 top global 1/1
#### name
The `name` filter matches on all or part of a service's name.
The `name` filter matches on all or the prefix of a service's name.
The following filter matches services with a name containing `redis`.
The following filter matches services with a name starting with `redis`.
```console
$ docker service ls --filter name=redis