How to stop a docker service? - Stack Overflow
https://stackoverflow.com/questions/51102589docker service scale [servicename]=0 will remove all running instances but still keep the service object alive. eg. [node1] (local) root@192.168.0.8 ~ $ docker service create --name test-service nginx cjvbwuhjhwpixwg01nh22cqbq overall progress: 1 out of 1 tasks 1/1: running [=====>] verify: Service converged [node1] (local) root@192.168.0.8 ~ $ docker service scale test-service=0 …
How to stop a docker service? - Stack Overflow
stackoverflow.com › questions › 51102589docker service scale [servicename]=0 will remove all running instances but still keep the service object alive. eg. [node1] (local) root@192.168.0.8 ~ $ docker service create --name test-service nginx cjvbwuhjhwpixwg01nh22cqbq overall progress: 1 out of 1 tasks 1/1: running [=====>] verify: Service converged [node1] (local) root@192.168.0.8 ~ $ docker service scale test-service=0 test-service ...