Commandes Linux : docker stack services


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

List the services in the stack

  -f, --filter filter         Filter output based on conditions provided
      --format string         Pretty-print services using a Go template
      --orchestrator string   Orchestrator to use (swarm|kubernetes|all)
  -q, --quiet                 Only display IDs


Lister les services d’une stack

$ docker stack services [OPTIONS] stack

ex :

$ docker stack services mystack
ID                  NAME                 MODE                REPLICAS            IMAGE                                          PORTS
3qi1rdmocngh        mystack_result       replicated          1/1                 dockersamples/examplevotingapp_result:before   *:5001->80/tcp
kn1qdmquzz1r        mystack_db           replicated          3/3                 postgres:9.4
q2onk7lai1xc        mystack_worker       replicated          1/1                 dockersamples/examplevotingapp_worker:latest
ryq7lsbz944j        mystack_vote         replicated          2/2                 dockersamples/examplevotingapp_vote:before     *:5000->80/tcp
xehxo13zisbz        mystack_visualizer   replicated          1/1                 dockersamples/visualizer:stable                *:8080->8080/tcp
xt2mwakr6u66        mystack_redis        replicated          1/1                 redis:alpine                                   *:30001->6379/tcp