Docker Swarm

 

  • docker node ls 
  • docker network ls network
  • docker stack deploy -c service.yml service
  • docker stack rm service
  • docker stats -a info about containers
  • docker network inspect NETWOKNAME -v
  • docker service rm $(docker service ls -q) 
  • docker node update --label-add LABEL HOSTNAME 
  • docker node update --label-add service=activemq HOST

open ports

Set up the swarm

Display token

Join

docker node ls  – list of nodes

docker service ls  list of services

docker service ps  list of tasks

docker info – info about cluster