Commandes Linux : docker stack ps

DOCKER STACK PS

Commande : docker stack ps
Usage:	docker stack ps [OPTIONS] STACK

List the tasks in the stack

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
      --orchestrator string   Orchestrator to use (swarm|kubernetes|all)
  -q, --quiet                 Only display task IDs

 

Afficher la liste des tâches d’une stack

$ docker stack ps [OPTIONS] stack

ex :

$ docker stack ps mystack
ID                  NAME                   IMAGE                                          NODE                DESIRED STATE       CURRENT STATE                  ERROR               PORTS
ilwcw8ben8ie        mystack_visualizer.1   dockersamples/visualizer:stable                node1               Running             Preparing about a minute ago
icez0oqcyhqv        mystack_worker.1       dockersamples/examplevotingapp_worker:latest   node1               Running             Preparing 2 minutes ago     
ka9af5qd2jwn        mystack_result.1       dockersamples/examplevotingapp_result:before   node1               Running             Preparing 2 minutes ago     
c4v7zeoqyasd        mystack_vote.1         dockersamples/examplevotingapp_vote:before     node2               Running             Running about a minute ago  
6anuzryrdjxv        mystack_db.1           postgres:9.4                                   node1               Running             Running 49 seconds ago      
fu7hrmsv8lqx        mystack_redis.1        redis:alpine                                   node2               Running             Running about a minute ago  
h981k89na6y8        mystack_vote.2         dockersamples/examplevotingapp_vote:before     node1               Running             Running about a minute ago

 

Fermer le menu