DOCKER SERVICE PS
Commande : docker service ps
Usage: docker service ps [OPTIONS] SERVICE [SERVICE...] List the tasks of one or more services Options: -f, --filter filter Filter output based on conditions provided --format string Pretty-print tasks using a Go template --no-resolve Do not map IDs to Names --no-trunc Do not truncate output -q, --quiet Only display task IDs
Lister les tâches d’un ou plusieurs services
docker service ps [OPTIONS] service [service...]
ex :
$ docker service ps vote
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
u6ft5zbc8xwz vote.1 instavote/vote:latest node3 Running Running 29 seconds ago
diftv07phzat vote.2 instavote/vote:latest node2 Running Running 27 seconds ago
k6qtg2kiewxx vote.3 instavote/vote:latest node3 Running Running 29 seconds ago
9t09sz9pr4e1 vote.4 instavote/vote:latest node4 Running Running 28 seconds ago
g7dbwtofnrmt vote.5 instavote/vote:latest node1 Running Running 26 seconds ago
m9vthhag9a1o vote.6 instavote/vote:latest node2 Running Running 27 seconds ago