Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 494 Bytes

misc-commands.md

File metadata and controls

39 lines (32 loc) · 494 Bytes

Misc commands

List nodes

docker node ls

Drain tasks from node

docker node update --availability drain <nodeid>

Run a service

docker service create --name webserver \
   -p 8000:80 \
   --replicas 2 \
   nginx:stable

Information on a service

docker service inspect webserver

Networks in your swarm

docker network ls

Tasks for a service

docker service ls <servicename>

What is running on a particular node

docker node ps <node>