diff --git a/command/service/list.go b/command/service/list.go index 67c120da58..1754297316 100644 --- a/command/service/list.go +++ b/command/service/list.go @@ -46,7 +46,7 @@ func runList(dockerCli *command.DockerCli, opts listOptions) error { client := dockerCli.Client() serviceFilters := opts.filter.Value() - serviceFilters.Add("runtimes", string(swarm.RuntimeContainer)) + serviceFilters.Add("runtime", string(swarm.RuntimeContainer)) services, err := client.ServiceList(ctx, types.ServiceListOptions{Filters: serviceFilters}) if err != nil { return err diff --git a/command/service/ps.go b/command/service/ps.go index f9720bd3e6..2c633c66d0 100644 --- a/command/service/ps.go +++ b/command/service/ps.go @@ -61,9 +61,9 @@ func runPS(dockerCli *command.DockerCli, opts psOptions) error { for _, service := range opts.services { // default to container runtime serviceIDFilter.Add("id", service) - serviceIDFilter.Add("runtimes", string(swarmtypes.RuntimeContainer)) + serviceIDFilter.Add("runtime", string(swarmtypes.RuntimeContainer)) serviceNameFilter.Add("name", service) - serviceNameFilter.Add("runtimes", string(swarmtypes.RuntimeContainer)) + serviceNameFilter.Add("runtime", string(swarmtypes.RuntimeContainer)) } serviceByIDList, err := client.ServiceList(ctx, types.ServiceListOptions{Filters: serviceIDFilter}) if err != nil { diff --git a/command/stack/common.go b/command/stack/common.go index 90bc19682e..e69e3fa908 100644 --- a/command/stack/common.go +++ b/command/stack/common.go @@ -19,7 +19,7 @@ func getStackFilter(namespace string) filters.Args { func getServiceFilter(namespace string) filters.Args { filter := getStackFilter(namespace) - filter.Add("runtimes", string(swarm.RuntimeContainer)) + filter.Add("runtime", string(swarm.RuntimeContainer)) return filter }