Merge pull request #1450 from lifubang/servicelsdoc
Some checks failed
build / prepare (push) Has been cancelled
build / build (push) Has been cancelled
build / prepare-plugins (push) Has been cancelled
build / plugins (push) Has been cancelled
codeql / codeql (push) Has been cancelled
e2e / e2e (19.03-dind, non-experimental) (push) Has been cancelled
e2e / e2e (alpine, stable-dind, connhelper-ssh) (push) Has been cancelled
e2e / e2e (alpine, stable-dind, experimental) (push) Has been cancelled
e2e / e2e (alpine, stable-dind, non-experimental) (push) Has been cancelled
e2e / e2e (debian, stable-dind, connhelper-ssh) (push) Has been cancelled
e2e / e2e (debian, stable-dind, experimental) (push) Has been cancelled
e2e / e2e (debian, stable-dind, non-experimental) (push) Has been cancelled
test / ctn (push) Has been cancelled
test / host (macos-11) (push) Has been cancelled
validate / validate (lint) (push) Has been cancelled
validate / validate (shellcheck) (push) Has been cancelled
validate / validate (update-authors) (push) Has been cancelled
validate / validate (validate-vendor) (push) Has been cancelled
validate / validate-md (push) Has been cancelled
validate / validate-make (manpages) (push) Has been cancelled
validate / validate-make (yamldocs) (push) Has been cancelled

fixes id and name filter in service ls is the prefix not a part
This commit is contained in:
Sebastiaan van Stijn
2023-12-21 01:10:11 +01:00
committed by GitHub

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