moby--moby/daemon/cluster
Yong Tang 43a1bd564b Support `--filter mode=global|replicated` for `docker service ls`
This fix tries to address the request in 31325 by adding
`--filter mode=global|replicated` to `docker service ls`.

As `docker service ls` has a `MODE` column by default, it is natural
to support `--filter mode=global|replicated` for `docker service ls`.

There are multiple ways to address the issue. One way is to pass
the filter of mode to SwarmKit, another way is to process the filter
of mode in the daemon.

This fix process the filter in the daemon.

Related docs has been updated.

An integration test has been added.

This fix fixes 31325.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-03-15 11:06:57 -07:00
..
convert Fix dropped field in task translation from GRPC to REST 2017-03-07 14:55:15 -08:00
executor Merge pull request #31500 from dperny/fix-service-logs-cli 2017-03-14 14:19:29 +01:00
provider Add engine-api types to docker 2016-09-07 11:05:58 -07:00
cluster.go Add a lockedManagerAction method to Cluster… 2017-02-28 11:12:11 +01:00
filters.go Support `--filter mode=global|replicated` for `docker service ls` 2017-03-15 11:06:57 -07:00
helpers.go refactor helper.go and move getSecret to helper.go 2017-02-12 02:30:53 +08:00
listen_addr.go Remove daemon.VXSubnets duplicate code 2017-02-28 10:51:40 +01:00
listen_addr_linux.go Add fallback to resolveSystemAddr() in linux 2016-09-09 13:27:57 -07:00
listen_addr_others.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
listen_addr_solaris.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
networks.go Add a lockedManagerAction method to Cluster… 2017-02-28 11:12:11 +01:00
noderunner.go Merge pull request #30145 from anusha-ragunathan/ps-swarm 2017-01-20 10:35:49 -08:00
nodes.go Add a lockedManagerAction method to Cluster… 2017-02-28 11:12:11 +01:00
secrets.go make secret update support name and id prefix 2017-03-07 16:01:21 +08:00
services.go Support `--filter mode=global|replicated` for `docker service ls` 2017-03-15 11:06:57 -07:00
swarm.go Add a lockedManagerAction method to Cluster… 2017-02-28 11:12:11 +01:00
tasks.go Add a lockedManagerAction method to Cluster… 2017-02-28 11:12:11 +01:00
utils.go Rather than remove the swarm directory and re-create, remove the swarm subdirs 2017-03-01 11:56:39 -08:00