From 60af715d65e4bcbce72c308af0f9a944bef06de1 Mon Sep 17 00:00:00 2001 From: Lifubang Date: Tue, 16 Oct 2018 15:56:29 +0800 Subject: [PATCH] id and name filter in service ls is the prefix not a part Signed-off-by: Lifubang --- docs/reference/commandline/service_ls.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/reference/commandline/service_ls.md b/docs/reference/commandline/service_ls.md index c3c7bccefb..304568f840 100644 --- a/docs/reference/commandline/service_ls.md +++ b/docs/reference/commandline/service_ls.md @@ -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