You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: developer-tools/java/chapters/ch06-swarm.adoc
+9-1
Original file line number
Diff line number
Diff line change
@@ -333,7 +333,15 @@ This shows 10 airlines from the `travel-sample` bucket.
333
333
334
334
Complete set of commands are shown at https://github.com/docker/labs/blob/master/developer-tools/java/chapters/ch05-compose.adoc#access-application.
335
335
336
-
== Shutdown Application
336
+
== Stop Application
337
+
338
+
If you only want to stop the application temporarily while keeping any networks that were created as part of this application, the recommended way is to set the amount of service replicas to 0.
339
+
340
+
`docker service scale webapp_db=0 webapp_web=0 webapp_default=0`
341
+
342
+
This is especially useful if the stack contains volumes and you want to keep the data. It allows you to simply start the stack again with setting the replicas to a number higher than 0.
343
+
344
+
== Remove Application Completely
337
345
338
346
Shutdown the application using `docker stack rm webapp`:
0 commit comments