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.

  1. Navigate to the cluster running the service of interest.
  2. Click the service's name to open the service details page that's being run in the container.
  3. Click the "Update" button to modify the service configuration.
  4. Change the "Replicas" count to zero.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Submit a request for support Submit a request for support