-
Notifications
You must be signed in to change notification settings - Fork 370
Docker swarm management commands
Deepak Narayana Rao edited this page Nov 13, 2017
·
2 revisions
This will list all nodes and their role (manager/worker)
docker node ls
docker service ls
Jenkins job: Docker_Swarm_Service_List
docker service ls | grep <service-name>
docker service ps <service-name> --no-trunc
docker service logs <service-name> --tail 200 -f
Jenkins job: Docker_Swarm_Service_Info
, Parameter: docker_swarm_service_name
Ref: https://stackoverflow.com/a/41897600/69362
docker service update <service-name> --force
Jenkins job: Docker_Swarm_Service_Restart
, Parameter: docker_swarm_service_name
docker service scale <service-name>=<number-of-replicas>
For troubleshooting docker swarm issues check Docker swarm troubleshooting