Commandes Linux : docker service ls

DOCKER SERVICE LS

Commande : docker service ls
Usage:	docker service ls [OPTIONS]

List services

Aliases:
  ls, list

Options:
  -f, --filter filter   Filter output based on conditions provided
      --format string   Pretty-print services using a Go template
  -q, --quiet           Only display IDs

 

Lister les services

docker service ls [OPTIONS]

ex :

$ docker service ls
ID                  NAME                MODE                REPLICAS            IMAGE                   PORTS
w6oq3h8zshjb        vote                replicated          6/6                 instavote/vote:latest   *:8080->80/tcp
$ docker service ls -f "name=vote"
ID                  NAME                MODE                REPLICAS            IMAGE                   PORTS
w6oq3h8zshjb        vote                replicated          6/6                 instavote/vote:latest   *:8080->80/tcp
$ docker service ls --format "{{.ID}}: {{.Mode}} {{.Replicas}}"
w6oq3h8zshjb: replicated 6/6

 

Fermer le menu
%d blogueurs aiment cette page :