Stop containers without deleting the service
Sometimes it's desirable to destroy/stop all containers without deleting the service configuration in Docker. This can be done by setting the service replicas to 0. In order to start containers again, increase the replicas to greater than 0.
- Navigate to the cluster running the service of interest.
- Click the service's name to open the service details page that's being run in the container.
- Click the "Update" button to modify the service configuration.
- Change the "Replicas" count to zero.