mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 17:49:59 +00:00
581 B
581 B
Getting task information for a given node
-
You can see all the tasks assigned to a node with
docker node ps -
It shows the desired state and current state of each task
-
docker node psshows info about the current node -
docker node ps <node_name_or_id>shows info for another node -
docker node ps -f <filter_expression>allows to select which tasks to show# Show only tasks that are supposed to be running docker node ps -f desired-state=running # Show only tasks whose name contains the string "front" docker node ps -f name=front