1
0
mirror of https://github.com/docker/cli.git synced 2026-01-16 20:22:36 +03:00

move service runtime filter to server

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
Upstream-commit: 25809f8991
Component: cli
This commit is contained in:
Evan Hazlett
2017-04-25 11:57:04 -04:00
committed by Tibor Vass
parent fe666a9eff
commit 461a743521

View File

@@ -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
}