docker service ps
Warning: this command is part of the Swarm management feature introduced in Docker 1.12, and might be subject to non backward-compatible changes.
service ps
Usage: docker service ps [OPTIONS] SERVICE List the tasks of a service Options: -a, --all Display all tasks -f, --filter value Filter output based on conditions provided --help Print usage --no-resolve Do not map IDs to Names
Lists the tasks that are running as part of the specified service. This command has to be run targeting a manager node.
Examples
Listing the tasks that are part of a service
The following command shows all the tasks that are part of the redis
service:
$ docker service ps redis ID NAME SERVICE IMAGE LAST STATE DESIRED STATE NODE 0qihejybwf1x5vqi8lgzl