mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
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> Upstream-commit: 43a1bd564b5dbd835631cda102f68286c0d533e9 Component: engine