From 25809f899182da274c380b8f3de9a09e8407e324 Mon Sep 17 00:00:00 2001 From: Evan Hazlett Date: Tue, 25 Apr 2017 11:57:04 -0400 Subject: [PATCH] move service runtime filter to server Signed-off-by: Evan Hazlett --- cli/command/service/list.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/command/service/list.go b/cli/command/service/list.go index d02c691a9b..338ac9164b 100644 --- a/cli/command/service/list.go +++ b/cli/command/service/list.go @@ -45,7 +45,8 @@ func runList(dockerCli *command.DockerCli, opts listOptions) error { ctx := context.Background() client := dockerCli.Client() - services, err := client.ServiceList(ctx, types.ServiceListOptions{}) + serviceFilters := opts.filter.Value() + services, err := client.ServiceList(ctx, types.ServiceListOptions{Filters: serviceFilters}) if err != nil { return err }