Add differentiation between stopping and removing

Signed-off-by: Philipp Gille <philipp.gille@gmail.com>
This commit is contained in:
Philipp Gillé 2017-04-14 18:16:30 +02:00 коммит произвёл Philipp Gille
Родитель a46d0edb84
Коммит 08dfb78468
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -333,7 +333,15 @@ This shows 10 airlines from the `travel-sample` bucket.
Complete set of commands are shown at https://github.com/docker/labs/blob/master/developer-tools/java/chapters/ch05-compose.adoc#access-application.
== Shutdown Application
== Stop Application
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.
`docker service scale webapp_db=0 webapp_web=0 webapp_default=0`
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.
== Remove Application Completely
Shutdown the application using `docker stack rm webapp`: